Error importing PyQt5
#1
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:


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!


Messages In This Thread
Error importing PyQt5 - by bunburya - 02-19-2020, 03:15 PM
RE: Error importing PyQt5 - by PureTryOut - 02-20-2020, 05:56 AM
RE: Error importing PyQt5 - by bunburya - 02-20-2020, 02:17 PM
RE: Error importing PyQt5 - by PureTryOut - 02-21-2020, 08:37 AM
RE: Error importing PyQt5 - by bunburya - 02-21-2020, 01:28 PM
RE: Error importing PyQt5 - by PureTryOut - 02-22-2020, 07:56 AM
RE: Error importing PyQt5 - by anjanmomi - 02-23-2020, 04:27 AM
RE: Error importing PyQt5 - by PureTryOut - 02-23-2020, 06:35 AM
RE: Error importing PyQt5 - by bunburya - 02-23-2020, 09:12 AM
RE: Error importing PyQt5 - by PureTryOut - 02-25-2020, 06:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  constant apk error message iwm 2 2,578 11-15-2021, 07:25 PM
Last Post: iwm
  Error when updating syrinx 1 2,374 03-06-2021, 01:32 AM
Last Post: hiimtye
  pmbootstrap error lat 2 3,540 12-22-2020, 06:32 PM
Last Post: lat
  chroot can't execute passwd exec format error dimm82 5 5,996 09-18-2020, 07:53 AM
Last Post: krsmith28p
Sad ERROR: Could not find dependency 'firmware-rtl8723bt' Engineer 4 6,128 06-16-2020, 12:29 PM
Last Post: Engineer

Forum Jump:


Users browsing this thread: 2 Guest(s)