Why did PyQt stop working?
Hello everybody,
I'm not sure whether this is a sailfish issue or a pyqt issue.
Years ago I installed pyqt-5.1.1-1.armv7hl.rpm from
https://openrepos.net/content/sailfishlib/pyqt.
It worked fine until spring.
But then I had to learn that my application kalli-pyqt5.py
did not launch anymore. When I try to start it I get:
[nemo@Sailfish Kal-pyqt5]$ ./kalli-pyqt5.py
sys.path: ['/home/nemo/.bin/Kal-pyqt5', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/lib/python3.7/site-packages']
Traceback (most recent call last):
File "./kalli-pyqt5.py", line 14, in <module>
from PyQt5.QtCore import * SystemError: initialization of QtCore failed without raising an exception
As to sys.path:
/home/nemo/.bin/Kal-pyqt5 does not contain PyQt.
/usr/lib/python37.zip does not exist.
/usr/lib/python3.7 does not contain PyQt.
/usr/lib/python3.7/lib-dynload contains a number of files named .cpython-37m-arm-linux-gnueabihf.so. /usr/lib/python3.7/site-packages contains a directory named PyQt5 with a number of files named Qt.so.
I have no idea why it stopped working or how to fix this.
Is it because sailfish upgraded from Python 3.4 to Python 3.7 somewhen?
Is it because the file in */PyQt5 are *.so files instead of *.py?
Any idea?
TIA
tsiksum
The old PyQt version for Python 3.4 certainly will not work with the current Python 3.7. For this reason I went back to an older version (3.0.1) of the OS in March.
It would be good to have PyQt binaries for download. It's not possible to build PyQt on the device. You need to use the SDK build engine.
I'm wondering why you have a PyQt5 directory under your python3.7 directory. What date do the .so files have?
Dietmar ( 2019-09-07 15:27:20 +0200 )edit