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 · 5 comments
Open

Install under Bockworm #205

ammerscm68 opened this issue Dec 9, 2023 · 5 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 :)

@calestyo
Copy link

fritzconnection has now been officially packaged for Debian, doesn't directly help you for bookworm, but at least for future versions (and in principle you could of course pull it into bookworm from unstable).

PS: As of now, the package site link isn't working yet (package was uploaded today), but that should become the link sooner or later.

@RacoonSN
Copy link

RacoonSN commented Dec 3, 2024

I almost made it on bookworm with

this is important to avoid distupgrade to sid:

cat /etc/apt/preferences.d/fritzconnection_from_sid 
Package: python3-fritzconnection
Pin: release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=all
Pin-Priority: 100

Package: *
Pin: release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=all
Pin-Priority: -100

and

cat /etc/apt/sources.list.d/fritzconnection.list 
deb [arch=all] https://deb.debian.org/debian unstable  main 

But unfortunately:

LANG=C sudo apt install python3-fritzconnection
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
.....
The following packages have unmet dependencies:
 python3-fritzconnection : Depends: libjs-sphinxdoc (>= 7.4) but 5.3.0-4 is to be installed
E: Unable to correct problems, you have held broken packages.

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

5 participants