Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install under Bockworm #205

Open
ammerscm68 opened this issue Dec 9, 2023 · 3 comments
Open

Install under Bockworm #205

ammerscm68 opened this issue Dec 9, 2023 · 3 comments

Comments

@ammerscm68
Copy link

The installation under Debian 12 Boockworm no longer works

@mib1185
Copy link
Contributor

mib1185 commented Dec 9, 2023

Hi @ammerscm68
a bit more details would be helpful, like how did you try to install the library and are there any error messages.

@ammerscm68
Copy link
Author

ammerscm68 commented Dec 10, 2023

Your Installation:
$ pip install fritzconnection
or
$ pip install fritzconnection[qr]
is no longer works under Debian 12 (Bookworm)

"pip3 install fritzconnection" does not work too

pip and pip3 is installed

Fail Message:
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

and

is not exist a package "python3-fritzconnection" under Debian 12 (Bookworm)

https://packages.debian.org/stable/python/

@kbr
Copy link
Owner

kbr commented Dec 10, 2023

@ammerscm68 : I'm not using debian but it seems to be that the OS does not allow installation of third-party libraries to the system-python as long as these packages are not provided as per 'apt' installabel debian-packages. That's a way to keep the system-python clean.

In this case you have to create a virtual environment (which is recommended anyway) and install fritzconnection by 'pip' in this environment as mentioned by the quote.

Or create a fritzconnection debian package. As far as I know, there is none. But other distributions like gentoo or NixOS and also FreeBSD are supporting such a native package. This is your chance to become a maintainer :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants