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. Help resolving PySide6 install issues on Rocky Linux 8

Help resolving PySide6 install issues on Rocky Linux 8

Scheduled Pinned Locked Moved Unsolved Qt for Python
13 Posts 4 Posters 418 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.
  • M morimo
    31 Mar 2025, 12:53

    @JonB both are already installed.

    J Offline
    J Offline
    JonB
    wrote on 31 Mar 2025, 12:56 last edited by
    #4

    @morimo
    And you ran the suggested command?

    I do not know whether the mention of the xcb cursor stuff in the message means that is really the issue or whether that comes whenever you get "Could not load the Qt platform plugin ..." for any reason. You could try export QT_DEBUG_PLUGINS=1 and then run your application and look at the diagnostic output to see whether that shows the reason clearly.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      morimo
      wrote on 31 Mar 2025, 13:10 last edited by morimo
      #5

      @JonB yes, I ran the command and dnf told me nothing to do.

      I've also already set the debug env variable, the plugin loader finds linuxfb, libqvnc, libqvkkhrdisplay, libwayland-generic, libqminimal, libqeglfs, libqoffscreen, libqwayland-egl, libqxcb and libqminimalegl, all not in debug mode and all located in the .cache directory of the (active) poetry-managed venv. Sorry I can't post the actual output right now.

      edit: is it possible that I need to force-reinstall the python package after installing the xcb dependencies?

      J 1 Reply Last reply 31 Mar 2025, 13:19
      0
      • M morimo
        31 Mar 2025, 13:10

        @JonB yes, I ran the command and dnf told me nothing to do.

        I've also already set the debug env variable, the plugin loader finds linuxfb, libqvnc, libqvkkhrdisplay, libwayland-generic, libqminimal, libqeglfs, libqoffscreen, libqwayland-egl, libqxcb and libqminimalegl, all not in debug mode and all located in the .cache directory of the (active) poetry-managed venv. Sorry I can't post the actual output right now.

        edit: is it possible that I need to force-reinstall the python package after installing the xcb dependencies?

        J Offline
        J Offline
        JonB
        wrote on 31 Mar 2025, 13:19 last edited by JonB
        #6

        @morimo
        I think it should be loading the
        Have a look through the thread https://forum.qt.io/post/758603 is in. I know nothing about RHEL. Can you run some equivalent of

        ldd /home/user/.local/lib/python3.9/site-packages/PyQt6/Qt6/plugins/platforms/libqxcb.so
        

        to find whether that still seems to be missing the cursor stuff per the error message?

        Does anything in https://forums.rockylinux.org/t/about-xcb-util-cursor-availability-in-rocky-9/11761 help your situation?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          morimo
          wrote on 31 Mar 2025, 13:30 last edited by morimo
          #7

          ldd finds libxcb-cursor.so.0

          I found more packages matching xcb-utils* (xcb-util-keysyms and xcb-util-wm) that I was missing.

          After installing them, the application launches successfully.

          when installing qt, should one generally just install xcb-util* and be done with it? I tried looking for documentation regarding platform plugin dependencies but didn't find anything that pointed me in the right direction.

          Thank you for your time @JonB

          J 1 Reply Last reply 31 Mar 2025, 14:03
          1
          • M morimo
            31 Mar 2025, 13:30

            ldd finds libxcb-cursor.so.0

            I found more packages matching xcb-utils* (xcb-util-keysyms and xcb-util-wm) that I was missing.

            After installing them, the application launches successfully.

            when installing qt, should one generally just install xcb-util* and be done with it? I tried looking for documentation regarding platform plugin dependencies but didn't find anything that pointed me in the right direction.

            Thank you for your time @JonB

            J Offline
            J Offline
            JonB
            wrote on 31 Mar 2025, 14:03 last edited by JonB
            #8

            @morimo said in Help resolving PySide6 install issues on Rocky Linux 8:

            I found more packages matching xcb-utils* (xcb-util-keysyms and xcb-util-wm) that I was missing.

            Sounds like sudo dnf install xcb-util-* would cover those as well as the xcb-util-cursor* ones from the original problem, and would be the suggested command for RHEL distro?

            Those of us on Debian have to do something similar to pick up all the dotted around, possibly required packages too.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              morimo
              wrote on 31 Mar 2025, 14:26 last edited by
              #9

              @JonB I don't know, I haven't been able to find any RHEL-specific docs for either the platform plugins or PySide6 itself. I would ideally only install what is actually required recommended but I couldn't find anything. Do you know somwhere where this information should/would be documented? I am homelabbing this because I will need to deploy a PySide6-based application in a secure envronment at some point in the future, so I am trying to make my installation/deployment steps as precise as I can.

              J 1 Reply Last reply 31 Mar 2025, 14:36
              0
              • M morimo
                31 Mar 2025, 14:26

                @JonB I don't know, I haven't been able to find any RHEL-specific docs for either the platform plugins or PySide6 itself. I would ideally only install what is actually required recommended but I couldn't find anything. Do you know somwhere where this information should/would be documented? I am homelabbing this because I will need to deploy a PySide6-based application in a secure envronment at some point in the future, so I am trying to make my installation/deployment steps as precise as I can.

                J Online
                J Online
                jsulm
                Lifetime Qt Champion
                wrote on 31 Mar 2025, 14:36 last edited by
                #10

                @morimo said in Help resolving PySide6 install issues on Rocky Linux 8:

                Do you know somwhere where this information should/would be documented?

                If your distribution provides PySide package you can check its dependencies.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                M 1 Reply Last reply 31 Mar 2025, 15:11
                1
                • J jsulm
                  31 Mar 2025, 14:36

                  @morimo said in Help resolving PySide6 install issues on Rocky Linux 8:

                  Do you know somwhere where this information should/would be documented?

                  If your distribution provides PySide package you can check its dependencies.

                  M Offline
                  M Offline
                  morimo
                  wrote on 31 Mar 2025, 15:11 last edited by
                  #11

                  @jsulm that's the thing, the distro doesn't provide the pyside package, after installing pyside from pypi finding the right dependencies involved more guesswork than I would've expected.

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    CristianMaureira
                    wrote on 1 Apr 2025, 11:43 last edited by
                    #12

                    Hey @morimo
                    The dependencies will be Qt ones, that can be found here: https://doc.qt.io/qt-6/linux-requirements.html

                    M 1 Reply Last reply 2 Apr 2025, 18:49
                    2
                    • C CristianMaureira
                      1 Apr 2025, 11:43

                      Hey @morimo
                      The dependencies will be Qt ones, that can be found here: https://doc.qt.io/qt-6/linux-requirements.html

                      M Offline
                      M Offline
                      morimo
                      wrote on 2 Apr 2025, 18:49 last edited by
                      #13

                      @CristianMaureira Thank you, this is exactly what I was looking for. I have no idea how I didn't find it while googling.

                      1 Reply Last reply
                      0

                      13/13

                      2 Apr 2025, 18:49

                      • Login

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