Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

PySide6 dependency problem within Virtual Python Environment



  • 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



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



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



  • @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++....?



  • @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 :-)


Log in to reply