Package: glue-sprite
Version: 0.13-7
Severity: important

Dear Maintainer,

I have a short script using glue-sprite to make a CSS spritesheet. In Bookworm
it worked fine, but after upgrading to Trixie this year I tried to run it again
and it now fails for me, producing the following error:

```

Format 'img' for sprite 'my-sprite' needs rebuild...

================================================================================
You've found a bug! Please, raise an issue attaching the following traceback
https://github.com/jorgebastida/glue/issues/new
--------------------------------------------------------------------------------
Version: 0.13
Python: 3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0]
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/glue/bin.py", line 235, in main
    manager.process()
    ~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/glue/managers/base.py", line 14, in 
process
    self.save()
    ~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/glue/managers/base.py", line 45, in save
    format.build()
    ~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/glue/formats/base.py", line 41, in build
    self.save(ratio=ratio)
    ~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/glue/formats/img.py", line 143, in save
    PILImage.ANTIALIAS)
    ^^^^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/glue-sprite", line 33, in <module>
    sys.exit(load_entry_point('glue==0.13', 'console_scripts', 'glue-sprite')())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/glue/bin.py", line 262, in main
    sys.stderr.write("PIL version: {0}\n".format(PImage.VERSION))
                                                 ^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'VERSION'

```

I searched online and found a clue that the PIL ANTIALIAS constant was
removed in Pillow 10.0.0. Debian Trixie ships with python3-pil 11.1.

Is it possible this package never worked in Trixie?

Best regards

-- System Information:
Debian Release: 13.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable'), (1, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.57+deb13-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=locale: Cannot set 
LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE=en_NZ:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages glue-sprite depends on:
ii  libjs-sphinxdoc        8.1.3-5
ii  python3                3.13.5-1
ii  python3-jinja2         3.1.6-1
ii  python3-pil            11.1.0-5+b1
ii  python3-pkg-resources  78.1.1-0.1

Versions of packages glue-sprite recommends:
ii  optipng  0.7.8+ds-1+b1

glue-sprite suggests no packages.

-- debconf information excluded

Reply via email to