polhenarejos / acme_email

ACME Email Client for EmailReply-00 Challenge
https://acme.castle.cloud
GNU General Public License v3.0
59 stars 9 forks source link

ImportError: cannot import name 'pkcs7' #23

Closed polhenarejos closed 3 years ago

polhenarejos commented 3 years ago

Discussed in https://github.com/polhenarejos/acme_email/discussions/2

Originally posted by **CLSMCSMII** July 16, 2021 After git clone and run setup.py successfully, I tried this command python3 cli.py cert --config-dir . --work-dir . --logs-dir . -e clxxxxx@icloud.com --contact panxxx@xxxxxx --usage digitalSignature --usage keyEncipherment (both emails are valid) Then I got this error: An unexpected error occurred: ImportError: cannot import name 'pkcs7' Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/tmphkn09j3p/log or re-run Certbot with -v for more details. And.. tail /tmp/tmphkn09j3p/log File "/home/tempuser/acme/acme_email/certbot_castle/plugins/imap.py", line 22, in from cryptography.hazmat.primitives.serialization import pkcs7 ImportError: cannot import name 'pkcs7' 2021-07-16 10:55:46,200:ERROR:certbot._internal.log:An unexpected error occurred: 2021-07-16 10:55:46,200:ERROR:certbot._internal.log:ImportError: cannot import name 'pkcs7' Already install pkcs7 with this command "pip3 install pkcs7" still got the same error. Any idea?