On Fri, Jan 1, 2021 at 4:57 AM Nicolas Grandjean <nico...@microniko.net> wrote:
> Dec 31 19:03:18 krypton certbot[4849]: ModuleNotFoundError: No module named 
> 'cryptography.hazmat.primitives.asymmetric'

Hi Nicolas,

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

Second, can you run the attached script and give me the output?

-- 
Harlan Lieberman-Berg
~hlieberman
#!/usr/bin/python3

import cryptography
print(cryptography.__file__)
print(cryptography.__version__)
import cryptography.hazmat
print(cryptography.hazmat.__file__)
import cryptography.hazmat.primitives
print(cryptography.hazmat.primitives.__file__)
import cryptography.hazmat.primitives.asymmetric
print(cryptography.hazmat.primitives.asymmetric.__file__)

Reply via email to