[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

HPLIP: Ubuntu bug 1851918



Hi,

on Ubuntu, the following bug got reported:

https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1851918

The hp-check utility of HPLIP uses a deprecated way to check the version of Pillow. The bug was also reported on FreeBSD:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238072

There a patch is poroposed which fixes the bug. The pure, packaging-independent patch I have attached to this mail.

Probably Debian also suffers this problem or will suffer it soon (with Pillow 6.0.0).

So I want to ask you whether you could add this patch to the Debian package so that the fix syncs into Ubuntu.

Thanks in advance.

   Till
--- /usr/share/hplip/installer/dcheck.py~	2019-09-21 18:53:00.000000000 +0200
+++ /usr/share/hplip/installer/dcheck.py	2019-11-29 16:51:54.738988616 +0100
@@ -369,7 +369,10 @@
     except ImportError:
         return '-'
     else:
-         return Image.VERSION
+        if hasattr(Image, "__version__"): # required for Pillow >= 6.0.0
+            return Image.__version__
+        else:
+            return Image.VERSION
 
 def get_libpthread_version():
     try:

Reply to: