PyQt6 minimal requirements for Ubuntu github workflow
-
wrote on 3 Apr 2025, 17:06 last edited by
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.
-
wrote on 4 Apr 2025, 17:01 last edited by
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.
-
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.
wrote on 3 Apr 2025, 17:31 last edited by@Fr33dan
If you do not get an answer you may need to ask the Riverbank authors of PyQt for this one. -
Hi and welcome to devnet,
Does it work if you install just libxkbcommon0 ?
-
wrote on 3 Apr 2025, 22:53 last edited by
@SGaist oh sorry forgot to mention in the original post, if I remove xorg from the suggested command and just run the install for libxkbcommon0 then I get a message from apt about it already being installed and the linting still fails.
-
wrote on 4 Apr 2025, 17:01 last edited by
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.
-
4/6