PyQt6 minimal requirements for Ubuntu github workflow
-
With PyQt5 end of support coming soon we are updating to PyQt6. Migration of the codebase itself was relatively painless, except our linting workflows failed. I found a comment on an issue on the pylint repo that outlined the issue.
To briefly summerize the link, pylint must import pyqt to verify names. That import is failing because some system dependencies are not found. The solution provided in the link is to install xorg with apt.
This solution works, but has slowed down the workflow significantly as xorg requires a lot of dependencies itself making it a hefty install. I'm hoping there is some solution where I can install a smaller subset of packages to meet the requirements of PtQt6.
-
I figured out a way to get my own answer. Used nektosact to set up a docker container equivilent to the github one, got a bash shell in it and ran ldd on libQt6Gui.so which reported that libEGL.so.1 and libGL.so.1 were missing. Set my command to run install libgl1 and libegl1 it just had to install those two (no further dependencies) which got the job done.
-
Hi and welcome to devnet,
Does it work if you install just libxkbcommon0 ?
-
I figured out a way to get my own answer. Used nektosact to set up a docker container equivilent to the github one, got a bash shell in it and ran ldd on libQt6Gui.so which reported that libEGL.so.1 and libGL.so.1 were missing. Set my command to run install libgl1 and libegl1 it just had to install those two (no further dependencies) which got the job done.
-
Glad you found out and thanks for sharing !
I did not think about this library because most of the time it happens when building C++ projects without all dependencies properly installed.
-
S SGaist has marked this topic as solved