Fix #7173: Add flag to allow access to system Python packages on recent Linux distributions (-> PEP-668)#8824
Conversation
|
Hi @dhs-rec, The dbus-python is the indirect dependency of keyring (Ref:https://pypi.org/project/keyring/). The author of the keyring package mentioned that "On Linux, the KWallet backend relies on dbus-python, which does not always install correctly when using pip (compilation is needed). For best results, install dbus-python as a system package." So, we are already installing python3-dbus as a pgAdmin dependency. Please check while installing pgAdmin whether this dependency is getting installed on your system or not. |
|
Yes, |
|
As an alternative solution, from above
This flag must be provided when creating the Python virtual environment. |
|
@dhs-rec, do you have any specific installation? We test on Debian Bookworm and have never faced this issue. Also, as you can see, GitHub actions are failing with your PR. |
|
No, plain Debian Bookworm, as stated in the ticket. I'll look into the failing actions... |
|
Hmm, can't see any tests on Debian Bookworm. I only see Ubuntu 22.04 (when it comes to Linux). But PEP-668 was only enabled as of Ubuntu 23.04 (and Debian Bookworm). No wonder the problem didn't show up if you don't test on recent versions. Anyway, I do see that in the Dockerfile, the Python virtual environment is indeed already created with |
… from the virtual environment.
This fixes #7173.