Qubes-manager crashes " PyQt4.QtCore and PyQt5.QtCore modules both wrap the QObject class"

For a while now qubes-manager and qubes-template-manager have been crashing. what I get is the following message :

File "/usr/bin/qubes-qube-manager", line 9, in <module>
    load_entry_point('qubesmanager==4.0.45', 'console_scripts', 'qubes-qube-manager')()
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2575, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2235, in load
    return self.resolve()
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2241, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.5/site-packages/qubesmanager/qube_manager.py", line 44, in <module>
    from PyQt4 import QtGui  # pylint: disable=import-error
RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the QObject class

a very similar issue was reported here :

But this was over a year ago and supposedly an update was issued for this, So idk why it’s coming back up again. Any help would be appreciated. Thank you

Hi @lala1 thanks for bringing it up and investigating. This may prompt opening a new formal bug report:

Also, I’ve added a bit of markdown formatting to your post.

Thanks for creating the issue. Linking it here:

Looks like this bug is already being worked on thanks to @rustybird!