On 2019-12-19 13:10, David Mathog wrote:
Is there a pacman package which supplies that Qt subdirectory?
Made some progress. This exists:
/mingw32/lib/python2.7/site-packages/PyQt5/QtWidgets.pyd
so the widgets are already built into a Python dll, they are not
present as separate files in a Qt directory. Now how to load it???
python2.7
import sys
import PyQt5
print dir(PyQt5)
['__builtins__', '__doc__', '__file__', '__name__', '__package__',
'__path__']
There is I think the root of the problem. Because while this
https://likegeeks.com/pyqt5-tutorial/
says to do:
from PyQt5 import QtWidgets, uic
that fails - because no enum.
pip2 install enum
now the "from" works. But Pymol still will not start because
AttributeError: 'module' object has no attribute 'IntEnum'
Apparently that means it needs enum34 instead of enum.
pip2 uninstall enum
pip2 install enum34
Now the "from" command works. Better yet, PyMol starts up in qt mode
too!
The odd thing though is that when "python -v" is used there is no
"import enum", and enum(34) lives in site-packages, so it must be
imported because otherwise installing it would not have made a
difference.
Regards,
David Mathog
[email protected]
Manager, Sequence Analysis Facility, Biology Division, Caltech
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public