Infomaniak / certbot-dns-infomaniak

Infomaniak DNS Authenticator plugin for certbot
Apache License 2.0
34 stars 13 forks source link

Installation error: externally-managed-environment #39

Open paleo opened 3 weeks ago

paleo commented 3 weeks ago

Hello, I installed certbot on Ubuntu 24.04:

$ sudo snap install --classic certbot
$ certbot --version
certbot 2.11.0

For your plugin, I added Python. Then, I tried to install your plugin but it doesn't work:

$ sudo apt install python3-pip
$ pip install certbot-dns-infomaniak
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.

I tried with pipx:

$ sudo apt install pipx
$ pipx install certbot-dns-infomaniak
Note: Dependent package 'certbot' contains 1 apps
  - certbot
Note: Dependent package 'josepy' contains 1 apps
  - jws
Note: Dependent package 'charset-normalizer' contains 1 apps
  - normalizer
Note: Dependent package 'distro' contains 1 apps
  - distro

No apps associated with package certbot-dns-infomaniak. Try again with '--include-deps' to include apps of dependent packages, which are listed above. If you are attempting to install a library, pipx should not be used. Consider
using pip or a similar tool instead.

I'm not used to Python. Could you help me find the right commands to install your plugin?

paleo commented 3 weeks ago

I think I found a solution using only apt:

sudo apt install certbot python3-certbot-nginx python3-certbot-dns-infomaniak
treyssatvincent commented 1 week ago

You could also use pipx:

apt install pipx

# Install certbot-dns-infomaniak with it's dependencies (including certbot)
pipx install certbot-dns-infomaniak --include-deps

# Then run the pipx certbot:
/root/.local/bin/certbot certonly --authenticator dns-infomaniak # ...