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. PySide6 dependency problem within Virtual Python Environment

PySide6 dependency problem within Virtual Python Environment

Scheduled Pinned Locked Moved Solved Qt for Python
6 Posts 3 Posters 3.7k 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.
  • R Offline
    R Offline
    Rudy Marty
    wrote on 30 Nov 2021, 16:55 last edited by Rudy Marty
    #1

    Hello !

    I decided to migrate from Xubuntu 20.04 LTS to Linux Mint 20.2, and start from a fresh Python config. I have setup my project with a venv and few packages (Numpy, Shapely, Pyside6, ...), and I got the following error message :

        from PySide6.QtWidgets import QApplication
    ImportError: libgssapi_krb5.so.2: cannot open shared object file: No such file or directory
    

    It looks like Qt libraries within a venv can't find properly this system lib ...

    Have you any idea how to solve this ?

    PS : of course I have checked that I actually have the lib : /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2

    J 1 Reply Last reply 30 Nov 2021, 18:56
    0
    • R Rudy Marty
      30 Nov 2021, 16:55

      Hello !

      I decided to migrate from Xubuntu 20.04 LTS to Linux Mint 20.2, and start from a fresh Python config. I have setup my project with a venv and few packages (Numpy, Shapely, Pyside6, ...), and I got the following error message :

          from PySide6.QtWidgets import QApplication
      ImportError: libgssapi_krb5.so.2: cannot open shared object file: No such file or directory
      

      It looks like Qt libraries within a venv can't find properly this system lib ...

      Have you any idea how to solve this ?

      PS : of course I have checked that I actually have the lib : /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2

      J Offline
      J Offline
      JonB
      wrote on 30 Nov 2021, 18:56 last edited by JonB
      #2

      @Rudy-Marty
      Is https://stackoverflow.com/questions/69865952/importerror-libgssapi-krb5-so-2-cannot-open-shared-object-file-no-such-file-o you too, or is it someone else reporting same as you? EDIT Just found https://stackoverflow.com/questions/66420927/libgssapi-krb5-so-2-cannot-open-shared-object-file-no-such-file-or-directory too, you can't be all these people ;-)

      • Have you run ldd /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2? Any missing dependencies can result in the error message naming this library.

      • Have you tried/can you try testing this outside the venv, so we know for sure it's that?

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rudy Marty
        wrote on 1 Dec 2021, 09:34 last edited by
        #3

        Hello @JonB
        No, it is not me :-)
        I already have run ldd on this lib and even on the others from PySIde: everything is fine (and found !).
        I just tried outside venv: same result.
        The fact that this specific lib makes an issue is very strange because the others are found beside.
        I can make import PySide6 and it works, but the libs which need libgssapi_krb5 are the only problem in the end.

        J 1 Reply Last reply 1 Dec 2021, 09:39
        0
        • R Rudy Marty
          1 Dec 2021, 09:34

          Hello @JonB
          No, it is not me :-)
          I already have run ldd on this lib and even on the others from PySIde: everything is fine (and found !).
          I just tried outside venv: same result.
          The fact that this specific lib makes an issue is very strange because the others are found beside.
          I can make import PySide6 and it works, but the libs which need libgssapi_krb5 are the only problem in the end.

          J Offline
          J Offline
          JonB
          wrote on 1 Dec 2021, 09:39 last edited by
          #4

          @Rudy-Marty
          OK, well you see at least two other people have posted same at stackoverflow, so it must be a "thing", but sadly it seems without resolution. I wonder if @eyllanesc will see this, as that user is an expert in Python/PyQt/PySide and the crossover to Qt/C++....?

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Rudy Marty
            wrote on 1 Dec 2021, 10:01 last edited by
            #5

            @JonB
            I just made some progress few minutes ago.
            I found a very ugly bug in the Mind/Keyboard interface called the brain. My brain, indeed.
            I made a mistake in my pip install config that I have fixed, and everything is working now.
            When one try to play with paths, better to know your stuff. Lessons learned !
            Anyway I apologize, and thank you for your help :-)

            1 Reply Last reply
            0
            • C Offline
              C Offline
              cleemesser
              wrote on 14 Feb 2022, 14:54 last edited by
              #6

              I use ubuntu 20.04 and have seen this problem happen in my virtual environments on occasion, most recently when I tried installing PySide6 into a conda environment (version 6.2)

              It turned out that my conda environment already had PyQt5 and qt-5.12.2 installed due to it being pulled in via a dependency. When I removed PyQt5, the pip installed pyside6 worked without the library error.

              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