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
Forum Updated to NodeBB v4.3 + New Features

Help resolving PySide6 install issues on Rocky Linux 8

Scheduled Pinned Locked Moved Unsolved Qt for Python
13 Posts 4 Posters 1.0k Views 1 Watching
  • 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

    @JonB both are already installed.

    JonBJ Offline
    JonBJ Offline
    JonB
    wrote on 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 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?

      JonBJ 1 Reply Last reply
      0
      • M morimo

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

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on 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 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

          JonBJ 1 Reply Last reply
          1
          • M morimo

            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

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on 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 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.

              jsulmJ 1 Reply Last reply
              0
              • M morimo

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

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on 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
                1
                • jsulmJ jsulm

                  @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 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
                  • CristianMaureiraC Offline
                    CristianMaureiraC Offline
                    CristianMaureira
                    wrote on 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
                    • CristianMaureiraC CristianMaureira

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

                      • Login

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