hi harlan,
Le 01/01/2021 à 11:20, Harlan Lieberman-Berg a écrit : > That's a strange error. certbot depends on python3-certbot, which I > see you have installed. That package depends on python3-cryptography, > which should have the python module that it's erroring about. > > A couple of things to get some more intel. First, what's the output > of the following: dpkg -s python3-cryptography python3-certbot certbot It's in the file `dpkg-output`. > Second, can you run the attached script and give me the output? nicolas@krypton:/tmp$ ./import.py /usr/lib/python3/dist-packages/cryptography/__init__.py 2.6.1 /usr/lib/python3/dist-packages/cryptography/hazmat/__init__.py None Traceback (most recent call last): File "./import.py", line 10, in <module> import cryptography.hazmat.primitives.asymmetric ModuleNotFoundError: No module named 'cryptography.hazmat.primitives.asymmetric' I hope it can be useful -- Nicolas
Package: python3-cryptography Status: install ok installed Priority: optional Section: python Installed-Size: 1417 Maintainer: Tristan Seligmann <mithra...@debian.org> Architecture: amd64 Source: python-cryptography Version: 2.6.1-3+deb10u2 Depends: python3 (>= 3~), python3-asn1crypto (>= 0.21.0~), python3-cffi-backend-api-min (<= 9729), python3-cffi-backend-api-max (>= 9729), python3-six (>= 1.4.1), python3:any, libc6 (>= 2.14), libssl1.1 (>= 1.1.1) Suggests: python-cryptography-doc, python3-cryptography-vectors Breaks: python3-openssl (<< 16.0.0) Description: Python library exposing cryptographic recipes and primitives (Python 3) The cryptography library is designed to be a "one-stop-shop" for all your cryptographic needs in Python. . As an alternative to the libraries that came before it, cryptography tries to address some of the issues with those libraries: - Lack of PyPy and Python 3 support. - Lack of maintenance. - Use of poor implementations of algorithms (i.e. ones with known side-channel attacks). - Lack of high level, "Cryptography for humans", APIs. - Absence of algorithms such as AES-GCM. - Poor introspectability, and thus poor testability. - Extremely error prone APIs, and bad defaults. . This package contains the Python 3 version of cryptography. Homepage: https://cryptography.io/ Package: python3-certbot Status: install ok installed Priority: optional Section: python Installed-Size: 1222 Maintainer: Debian Let's Encrypt <team+letsencr...@tracker.debian.org> Architecture: all Source: python-certbot Version: 0.31.0-1 Replaces: python-letsencrypt Depends: python3-acme (>= 0.29.0~), python3-requests (>= 2.4.3), python3-configargparse (>= 0.10.0), python3-configobj, python3-cryptography (>= 1.2.3), python3-josepy, python3-mock, python3-parsedatetime (>= 1.3), python3-pkg-resources, python3-rfc3339, python3-tz, python3-zope.component, python3-zope.interface, python3:any Recommends: certbot Suggests: python-certbot-doc Breaks: python-certbot-apache (<< 0.20.0), python-certbot-nginx (<< 0.20.0), python-letsencrypt (<= 0.6.0) Description: main library for certbot The objective of Certbot, Let's Encrypt, and the ACME (Automated Certificate Management Environment) protocol is to make it possible to set up an HTTPS server and have it automatically obtain a browser-trusted certificate, without any human intervention. This is accomplished by running a certificate management agent on the web server. . This agent is used to: . - Automatically prove to the Let's Encrypt CA that you control the website - Obtain a browser-trusted certificate and set it up on your web server - Keep track of when your certificate is going to expire, and renew it - Help you revoke the certificate if that ever becomes necessary. . This package contains the main libraries. Homepage: https://certbot.eff.org/ Package: certbot Status: install ok installed Priority: optional Section: web Installed-Size: 68 Maintainer: Debian Let's Encrypt <team+letsencr...@tracker.debian.org> Architecture: all Source: python-certbot Version: 0.31.0-1 Replaces: letsencrypt Provides: letsencrypt Depends: python3-certbot (= 0.31.0-1), python3:any Suggests: python3-certbot-apache, python3-certbot-nginx, python-certbot-doc Breaks: letsencrypt (<= 0.6.0) Conffiles: /etc/cron.d/certbot b100f45b33319f91060b0a59721a0ede /etc/letsencrypt/cli.ini dc5a5672c8f966a968ac0c98c447c14e /etc/logrotate.d/certbot a815a66a333f2637c00055fcd44b02d4 Description: automatically configure HTTPS using Let's Encrypt The objective of Certbot, Let's Encrypt, and the ACME (Automated Certificate Management Environment) protocol is to make it possible to set up an HTTPS server and have it automatically obtain a browser-trusted certificate, without any human intervention. This is accomplished by running a certificate management agent on the web server. . This agent is used to: . - Automatically prove to the Let's Encrypt CA that you control the website - Obtain a browser-trusted certificate and set it up on your web server - Keep track of when your certificate is going to expire, and renew it - Help you revoke the certificate if that ever becomes necessary. . This package contains the main application, including the standalone and the manual authenticators. Homepage: https://certbot.eff.org/