Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. PyQt6 minimal requirements for Ubuntu github workflow
QtWS25 Last Chance

PyQt6 minimal requirements for Ubuntu github workflow

Scheduled Pinned Locked Moved Solved Qt for Python
6 Posts 3 Posters 304 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fr33dan
    wrote on 3 Apr 2025, 17:06 last edited by
    #1

    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.

    J 1 Reply Last reply 3 Apr 2025, 17:31
    0
    • F Offline
      F Offline
      Fr33dan
      wrote on 4 Apr 2025, 17:01 last edited by
      #5

      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.

      1 Reply Last reply
      1
      • F Fr33dan
        3 Apr 2025, 17:06

        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.

        J Offline
        J Offline
        JonB
        wrote on 3 Apr 2025, 17:31 last edited by
        #2

        @Fr33dan
        If you do not get an answer you may need to ask the Riverbank authors of PyQt for this one.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 3 Apr 2025, 19:45 last edited by
          #3

          Hi and welcome to devnet,

          Does it work if you install just libxkbcommon0 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          F 1 Reply Last reply 3 Apr 2025, 22:53
          0
          • S SGaist
            3 Apr 2025, 19:45

            Hi and welcome to devnet,

            Does it work if you install just libxkbcommon0 ?

            F Offline
            F Offline
            Fr33dan
            wrote on 3 Apr 2025, 22:53 last edited by
            #4

            @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.

            1 Reply Last reply
            0
            • F Offline
              F Offline
              Fr33dan
              wrote on 4 Apr 2025, 17:01 last edited by
              #5

              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.

              1 Reply Last reply
              1
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 4 Apr 2025, 18:01 last edited by
                #6

                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.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • S SGaist has marked this topic as solved on 4 Apr 2025, 18:01

                1/6

                3 Apr 2025, 17:06

                • Login

                • Login or register to search.
                1 out of 6
                • First post
                  1/6
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved