Q4 qube-manager broke after dom0 software update yesterday

52 views
Skip to first unread message

Steve Coleman

unread,
Dec 4, 2018, 2:07:49 PM12/4/18
to qubes...@googlegroups.com
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

Qubes-qube-manager.error.txt

donoban

unread,
Dec 6, 2018, 11:38:28 AM12/6/18
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
I think that PyQt5 is not installed on dom0 by default so this problem
is not very likely to happen.

Also it seems that all imports from Qube Manager source specify version
4.

Please tell if you know some reliable steps for reproduce it.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEznLCgPSfWTT+LPrmFBMQ2OPtCKUFAlwJUHsACgkQFBMQ2OPt
CKWr+A//Qx8jQ3xuZDNGTmIKUvVBLJNau01wHdRVF+bBW0S7RxfjiwHXjTJ5DLTU
L/ne1fCjGDPG7kV3fqy2sXq0Lfl1brPiIQpcU82f/LpHBsIGb6Uz33vfDGF8hNkC
ZEaK76KHxoA9Z3OVwic/x56kwbLuvXDX8d6M8K37ZOfOxgsgoY7WbGQDf/0dBK6Y
auAnPxQ8K3vhS/prJi2u+DWASBnEkM9d94tCeOFhpVHYkpv/6F1PMhx5CSTy/lwN
aSOy1IUkL54WJ4QwT3NNoIKkd+vhxHHOjvvSeKCQcAANoYkgtkhwEJDD/AQn9bE4
EDAZ8yV3QfHElg64x9SIbQJh5rrlLJpKOLnMMslzQl1zIrAzy5V5YcInXiic6VK8
cNDX+FT07kz5+PoqZ5eUMrnbFjbCE4t53sGRuTS+Zd1QdVIEHTvHd2ToMUfeEBX+
tnLTbqg+rhh/F6oirI+L/jx5oSrye5vNvx5kcg4Q0y4AbEWPY0DVZWuemuMVBQGl
4TqG8zQN7CNU6yW8GRHBf3dLi9DtJVS9LUVe+HlC0AYZw2JDUFGxpo6Jb4LxZ791
V9k/FFzH4CLeRs9nh2aoQDFnjK4PcEEifJep9Grbi+z4wGHxN/VB/+aVU4acKJ/I
9Kdr+D4lvlYV6hGY0qxYugj7L26itILsEBPqeGpomsR+2NgKOus=
=NNXh
-----END PGP SIGNATURE-----

Steve Coleman

unread,
Dec 6, 2018, 1:11:59 PM12/6/18
to donoban, qubes...@googlegroups.com
Ok, thanks. At least I now know which direction to go to debug this
problem. There must be some tool installed that pulled in PyQt5 then.
I'll check the dependencies and see what that might be, or otherwise
remove that package.

One would think that python would have a way to control this as a
dynamic PATH configuration. If they do have control of this dynamic
loading I have not found that feature yet.

Steve Coleman

unread,
Dec 10, 2018, 9:03:59 AM12/10/18
to donoban, qubes...@googlegroups.com
Just to document the outcome, removing the python3-pyqt5 package and its
dependencies did the trick, and the qubes-qube-manager now runs with no
problem.

Why pyqt4 and pyqt5 can not both be installed I have no clue, but
somehow this application was using a little of each (Qt4,Qt5) and failed
miserably. There should be a mechanism to prevent python from mixing
incompatible resources. I'm just glad that this same bug did not break
the command line update tools at the same time.
Reply all
Reply to author
Forward
0 new messages