Control: severity -1 serious
Control: tags -1 + patch

Dear maintainer,

I've prepared a patch to fix this issue.
Also currently the package qreator isn't useful at all with this issue
because it crashes on startup. Thus bumping severity to serious
because this package shouldn't end up in Debian Buster without a fix
for this issue.

Please let me know if I should upload this fix as NMU or if you like
to upload it yourself.

Thanks,
Andreas
diff -Nru qreator-16.06.1/debian/changelog qreator-16.06.1/debian/changelog
--- qreator-16.06.1/debian/changelog	2018-04-14 14:48:31.000000000 +0200
+++ qreator-16.06.1/debian/changelog	2019-03-27 21:27:47.000000000 +0100
@@ -1,3 +1,11 @@
+qreator (16.06.1-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add Fix-python-pil-imports.patch, fixes a program crash due to
+    incorrect PIL imports (Closes: #900573).
+
+ -- Andreas Boll <ab...@debian.org>  Wed, 27 Mar 2019 21:27:47 +0100
+
 qreator (16.06.1-3) unstable; urgency=medium
 
   * [207e2e1] Port qreator to libnm (Closes: #857227)
diff -Nru qreator-16.06.1/debian/patches/Fix-python-pil-imports.patch qreator-16.06.1/debian/patches/Fix-python-pil-imports.patch
--- qreator-16.06.1/debian/patches/Fix-python-pil-imports.patch	1970-01-01 01:00:00.000000000 +0100
+++ qreator-16.06.1/debian/patches/Fix-python-pil-imports.patch	2019-03-27 21:27:47.000000000 +0100
@@ -0,0 +1,22 @@
+Author: Andreas Boll <ab...@debian.org>
+Date:   Wed Mar 27 21:09:41 2019 +0100
+
+    Fix python-pil imports
+
+    Fixes bug #900573
+
+diff --git a/qreator/QRCode.py b/qreator/QRCode.py
+index d3a0130..930a538 100644
+--- a/qreator/QRCode.py
++++ b/qreator/QRCode.py
+@@ -20,8 +20,8 @@ try:
+ except ImportError:
+     print "You need to install the python-qrencode package"
+     sys.exit(1)
+-import Image
+-import ImageOps
++from PIL import Image
++from PIL import ImageOps
+ import cairo
+ import array
+
diff -Nru qreator-16.06.1/debian/patches/series qreator-16.06.1/debian/patches/series
--- qreator-16.06.1/debian/patches/series	2018-04-14 14:48:31.000000000 +0200
+++ qreator-16.06.1/debian/patches/series	2019-03-27 21:27:47.000000000 +0100
@@ -3,3 +3,4 @@
 Port-to-geoclue-2.0.patch
 Port-to-libnm.patch
 Fix-IndexError-when-a-wifi-network-has-100-strength.patch
+Fix-python-pil-imports.patch

Reply via email to