Package: impressive
Version: 0.13.1-1
Severity: grave
Justification: renders package unusable

Hello again,

I have stumbled upon a new bug that affects impressive :-(

When starting up, I see the logo screen, but immediately afterwards, impressive
crashes with the following:

    $ impressive test.pdf 
    Welcome to Impressive version 0.13.1
    Platform library: [pygame-unix] Python 3.11.4 / PyGame 2.5.0 / SDL 2.28.1
    Detected screen size: 3840x2160 pixels
    PDF renderer: MuPDF 1.4 or newer
    OpenGL renderer: Mesa Intel(R) UHD Graphics 600 (GLK 2)
    Your version of PIL is too old or incomplete, disabling OSD.
    warning: ICC support is not available
    warning: ICC support is not available
    
    
===============================================================================
    OOPS! Impressive crashed!
    This shouldn't happen. Please report this incident to the author, including 
the
    full output of the program, particularly the following lines. If possible,
    please also send the input files you used.
    
    Impressive version: 0.13.1
    Python version: 3.11.4 (main, Jun 7 2023, 10:13:09) [GCC 12.2.0]
    Impressive platform: pygame-unix
    PyGame version: 2.5.0
    SDL version: 2.28.1
    PIL version: Pillow 10.0.0
    PDF renderer: MuPDF 1.4 or newer
    OpenGL vendor: Intel
    OpenGL renderer: Mesa Intel(R) UHD Graphics 600 (GLK 2)
    OpenGL version: 4.6 (Compatibility Profile) Mesa 23.1.4-1
    Operating system: Linux 6.4.0-1-amd64 (x86_64)
    Linux distribution: Debian GNU/Linux trixie/sid
    Command line: /usr/bin/impressive test.pdf
    Traceback (most recent call last):
      File "/usr/bin/impressive", line 6569, in run_main
        main()
      File "/usr/bin/impressive", line 6486, in main
        RenderPage(Pcurrent, Tcurrent)
      File "/usr/bin/impressive", line 3741, in RenderPage
        gl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGB, TexWidth, TexHeight, 0, gl.RGB, 
gl.UNSIGNED_BYTE, PageImage(page))
                                                                                
                  ^^^^^^^^^^^^^^^
      File "/usr/bin/impressive", line 3706, in PageImage
        img.thumbnail((sx, sy), Image.ANTIALIAS)
                                ^^^^^^^^^^^^^^^
    AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
    $ 

I suppose this comes as a change in python3-pil's API. I got impressive to work
again by very simplisticly substituting Image.ANTIALIAS in /usr/bin/impressive,
but of course, I'm sure there are better ways to patch this issue :-)

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages impressive depends on:
ii  mupdf-tools     1.22.2+ds1-1
ii  poppler-utils   22.12.0-2+b1
ii  python3         3.11.4-5
ii  python3-pil     10.0.0-1
ii  python3-pygame  2.5.0-1

Versions of packages impressive recommends:
ii  ffmpeg     7:6.0-5
ii  mplayer    2:1.5+svn38423-2+b1
ii  perl       5.36.0-7
ii  xdg-utils  1.1.3-4.1

Versions of packages impressive suggests:
ii  ghostscript   10.01.2~dfsg-1
pn  latex-beamer  <none>
pn  pdftk         <none>

-- no debconf information

Reply via email to