kbr / fritzconnection

Python-Tool to communicate with the AVM Fritz!Box by the TR-064 protocol and the AHA-HTTP-Interface
MIT License
303 stars 59 forks source link

Install under Bockworm #205

Open ammerscm68 opened 6 months ago

ammerscm68 commented 6 months ago

The installation under Debian 12 Boockworm no longer works

mib1185 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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