02-19-2020, 03:15 PM
Hi everyone,
I am looking into building GUIs with Python on postmarketOS. I am (currently) using plasma-mobile so I figured it would make sense to use PyQt5, maybe with Kirigami. So I installed py3-qt5 (version 5.13.1-r1) from the community repository using APK. However, when I go to import QtGui from PyQt5 in python3 I get the following error:
Trying to import QtWidgets gives the same error.
As well as the required dependencies for py3-qt5, I also installed py3-opengl to see if it would solve the problem (given the content of the error message) but it didn't help. I also installed qutebrowser and its dependencies and, although I can't see the full error message it returns, it appears to have the exact same problem. The full list of packages I have installed can be found at https://pastebin.com/HmgzaNPm.
Can anyone shed any light of what is wrong here? Googling around doesn't really yield any relevant results. I am reasonably familiar with Python but less so with Qt or C++. So I'm not sure if I am missing something here.
Thanks!
I am looking into building GUIs with Python on postmarketOS. I am (currently) using plasma-mobile so I figured it would make sense to use PyQt5, maybe with Kirigami. So I installed py3-qt5 (version 5.13.1-r1) from the community repository using APK. However, when I go to import QtGui from PyQt5 in python3 I get the following error:
Code:
Python 3.8.1 (default, Jan 19 2020, 11:48:03)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5 import QtGui
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: Error relocating /usr/lib/python3.8/site-packages/PyQt5/QtGui.so: _ZNK17QOpenGLTimerQuery16waitForTimestampEv: symbol not found
Trying to import QtWidgets gives the same error.
As well as the required dependencies for py3-qt5, I also installed py3-opengl to see if it would solve the problem (given the content of the error message) but it didn't help. I also installed qutebrowser and its dependencies and, although I can't see the full error message it returns, it appears to have the exact same problem. The full list of packages I have installed can be found at https://pastebin.com/HmgzaNPm.
Can anyone shed any light of what is wrong here? Googling around doesn't really yield any relevant results. I am reasonably familiar with Python but less so with Qt or C++. So I'm not sure if I am missing something here.
Thanks!