Cannot launch qreator

Bug #1951721 reported by psl
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Qreator
New
Undecided
Unassigned

Bug Description

Linux Mint 19.3 (Ubuntu 18.04)
qreator 16.06.1-2

I cannot launch qreator. I have found like similar bug was already fixed (#1771122). Anyway, this is what I see:

```
$ qreator
/usr/share/qreator/qreator_lib/Builder.py:21: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, Gtk # pylint: disable=E0611
Traceback (most recent call last):
  File "/usr/bin/qreator", line 45, in <module>
    import qreator
  File "/usr/share/qreator/qreator/__init__.py", line 22, in <module>
    from qreator import QreatorWindow
  File "/usr/share/qreator/qreator/QreatorWindow.py", line 30, in <module>
    from QRCode import QRCode
  File "/usr/share/qreator/qreator/QRCode.py", line 23, in <module>
    import Image
ImportError: No module named Image
```

I installed qreator with "apt install qreator"

```
$ python -V
Python 2.7.17
$ python3 -V
Python 3.6.9
```

Revision history for this message
gfew (gfew) wrote :

Same here. In my case with

$ apt install qreator
(...)
$ python -V
Python 2.7.17
$ python3 -V
Python 3.6.9
$ qreator --version
qreator 16.06.1

I've been able to fix this error, and run qreator, by

--- /usr/share/qreator/qreator/QRCode.py~ 2016-06-13 21:11:25.000000000 +0200
+++ /usr/share/qreator/qreator/QRCode.py 2022-06-13 21:21:25.000000000 +0200
@@ -23,2 +23,2 @@
-import Image
-import ImageOps
+from PIL import Image
+from PIL import ImageOps

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.