Package: python-plastex Version: 0.9.2-1.2 Severity: serious Tags: + patch Justification: Renders package (almost) useless
Dear Maintainer, Various python-imaging/python-pil imports have changed over time and plastex in Debian has almost kept up with them. It currently depends on python-pil but does not correctly import from PIL and so claims that python-pil is not installed; images within the documentation cannot be processed in this state. Since (almost) all documentation contains images, this means that plastex misrenders the documentation. (The only build-rdep of plastex in the archive makes heavy use of images in its documentation and is affected by this bug.) Patch attached and MR to follow. regards Stuart -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: unable to detect Versions of packages python-plastex depends on: ii dvipng 1.15-1.1 ii python 2.7.15-4 ii python-pil 5.4.1-1 ii texlive-latex-base 2018.20190122-1 Versions of packages python-plastex recommends: ii python-cheetah 3.1.0-3 ii python-genshi 0.7-6 ii python-kid 0.9.6-3 python-plastex suggests no packages. -- no debconf information
commit 156f57a99896710e64ce3b42248abc849e52f7b6 Author: Stuart Prescott <stu...@debian.org> Date: Sun Jan 27 18:44:28 2019 +1100 Fix import of PIL after rename diff --git a/debian/changelog b/debian/changelog index 2f22e5d..f5d3226 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,11 +1,15 @@ plastex (0.9.2-2) UNRELEASED; urgency=medium + [ Ondřej Nový ] * d/changelog: Remove trailing whitespaces * d/control: Remove trailing whitespaces * Remove debian/pycompat, it's not used by any modern Python helper * Convert git repository from git-dpm to gbp layout * d/watch: Use https protocol + [ Stuart Prescott ] + * Correctly import PIL + -- Ondřej Nový <on...@debian.org> Mon, 12 Mar 2018 23:22:35 +0100 plastex (0.9.2-1.2) unstable; urgency=low diff --git a/debian/patches/pilimport.diff b/debian/patches/pilimport.diff new file mode 100644 index 0000000..1bd4f91 --- /dev/null +++ b/debian/patches/pilimport.diff @@ -0,0 +1,15 @@ +diff --git a/plasTeX/Imagers/__init__.py b/plasTeX/Imagers/__init__.py +index 199fafe..ac26238 100644 +--- a/plasTeX/Imagers/__init__.py ++++ b/plasTeX/Imagers/__init__.py +@@ -13,8 +13,8 @@ depthlog = getLogger('render.images.depth') + status = getLogger('status') + + try: +- import Image as PILImage +- import ImageChops as PILImageChops ++ from PIL import Image as PILImage ++ from PIL import ImageChops as PILImageChops + except ImportError: + PILImage = PILImageChops = None + diff --git a/debian/patches/series b/debian/patches/series index 20a73cb..d64a4e1 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ 03_template_icon_links.diff remove_cgpdfpng.patch.diff 02_shebang.diff +pilimport.diff