I was away for a week and dutifully did all my software updates upon
returning. After updating Dom0 the qube-manager that was running started
having problems, so I restarted it, but it then refused to run.
RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the
QtObject class
The problem appears to be qube-manager/python3 is first picking up
references to PyQt5 when first launching, and later it is picking up
some PyQt4 references via
/usr/lib64/python3.5/site-packages/qubesadmin/__pycache__/*.pyc files,
which then load files from
/usr/lib64/python3.5/site-packages/PyQt4/__pycache__/* , and thus
PyQt4/QtGui.so gets loaded.
It looks like the qubes-manager-4.0.22-1.noarch is the latest, though I
can't help but think this is a case of cache poisoning or some Qt4/Qt5
environment issue. If so, can the __pycache__/*.pyc files be removed and
regenerated, or is there another way to avoid the mixing of PyQt versions?
thanks,
Steve
--
You received this message because you are subscribed to the Google Groups
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-users/a6de8368-4610-3aad-22f8-41654217fc73%40jhuapl.edu.
For more options, visit https://groups.google.com/d/optout.
dom0> qube-manager
Traceback (most recent call last):
File "/bin/qubes-qube-manager", line 9, in <module>
load_entry_point('qubesmanager==4.0.22', '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
41, in <module> from PyQt4 import QtGui # pylint: disable=import-error
RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the QObject
class
dom0> sudo strace qube-manager
...
open("/usr/lib64/python3.5/asyncio/__pycache__/sslproto.cpython-35.pyc",
O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib64/python3.5/site-packages/PyQt5/__pycache__/__init__.cpython-35.pyc",
O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib64/python3.5/site-packages/PyQt5",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
open("/usr/lib64/python3.5/site-packages/PyQt5/QtCore.so", O_RDONLY|O_CLOEXEC)
= 3
...
open("/usr/lib64/python3.5/site-packages/sip.so", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib64/python3.5/site-packages/PyQt5/QtGui.so", O_RDONLY|O_CLOEXEC) =
3
...
open("/lib64/libXau.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib64/python3.5/site-packages/PyQt5/QtWidgets.so",
O_RDONLY|O_CLOEXEC) = 3
...
open("/usr/lib/python3.5/site-packages/qubesadmin/__pycache__/tags.cpython-35.pyc",
O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/python3.5/site-packages/qubesadmin/events/__pycache__/__init__.cpython-35.pyc",
O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib64/python3.5/site-packages/PyQt4/__pycache__/__init__.cpython-35.pyc",
O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib64/python3.5/site-packages/PyQt4",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
open("/usr/lib64/python3.5/site-packages/PyQt4/QtGui.so", O_RDONLY|O_CLOEXEC) =
3
...
open("/lib64/libuuid.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib64/python3.5/site-packages/PyQt4/QtCore.so", O_RDONLY|O_CLOEXEC)
= 3
open("/bin/qubes-qube-manager", O_RDONLY|O_CLOEXEC) = 3
...
open("/usr/lib/python3.5/site-packages/pkg_resources/__init__.py",
O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/python3.5/site-packages/qubesmanager/qube_manager.py",
O_RDONLY|O_CLOEXEC) = 3
/usr/lib/python3.5/site-packages/qubesadmin/label.py:
:py:meth:`PyQt4.QtGui.QIcon.fromTheme`'''
dom0> find /usr/lib/python3.5/site-packages/qubesadmin -type f -exec grep -Hi
Qt4 {} \;
Binary file
/usr/lib/python3.5/site-packages/qubesadmin/__pycache__/label.cpython-35.pyc
matches
Binary file
/usr/lib/python3.5/site-packages/qubesadmin/__pycache__/label.cpython-35.opt-1.pyc
matches