My certbot broke, trying to get a wildcard cert

My domain is:
dev.wintouch.net
I ran this command:
certbot-auto certonly --manual --preferred-challenges DNS -d ‘dev.wintouch.net,*.dev.wintouch.net’

It produced this output:
Upgrading certbot-auto 1.0.0 to 1.1.0…
Replacing certbot-auto…
Creating virtual environment…
Installing Python packages…
Installation succeeded.
Traceback (most recent call last):
File “/opt/eff.org/certbot/venv/bin/letsencrypt”, line 7, in
from certbot.main import main
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/main.py”, line 2, in
from certbot._internal import main as internal_main
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/_internal/main.py”, line 10, in
import josepy as jose
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/init.py”, line 41, in
from josepy.interfaces import JSONDeSerializable
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/interfaces.py”, line 7, in
from josepy import errors, util
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/util.py”, line 7, in
import OpenSSL
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/init.py”, line 8, in
from OpenSSL import crypto, SSL
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/crypto.py”, line 12, in
from cryptography import x509
ImportError: No module named cryptography

My web server is (include version):
Two Apache httpd servers (versions unknown) and a Tomcat 8.5 server

The operating system my web server runs on is (include version):
Amazon Linux AMI

I can login to a root shell on my machine (yes or no, or I don’t know):
I can sign on, and “sudo bash” to root.

I had just successfully installed certbot yesterday, and it was working, until it auto-updated when I ran it today.

When I repeated the command, it gave this output:
Error: couldn’t get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt:
Traceback (most recent call last):
File “/opt/eff.org/certbot/venv/bin/letsencrypt”, line 7, in
from certbot.main import main
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/main.py”, line 2, in
from certbot._internal import main as internal_main
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/_internal/main.py”, line 10, in
import josepy as jose
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/init.py”, line 41, in
from josepy.interfaces import JSONDeSerializable
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/interfaces.py”, line 7, in
from josepy import errors, util
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/util.py”, line 7, in
import OpenSSL
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/init.py”, line 8, in
from OpenSSL import crypto, SSL
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/crypto.py”, line 12, in
from cryptography import x509
ImportError: No module named cryptography

I tried the solution offered at


It gave no complaints until the final command,
/opt/eff.org/certbot/venv/local/bin/pip install cryptography interface
at which point, it complained:
Requirement already satisfied: cryptography in /opt/eff.org/certbot/venv/lib/python2.7/dist-packages
Exception:
Traceback (most recent call last):
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/commands/install.py”, line 335, in run
wb.build(autobuilding=True)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/wheel.py”, line 749, in build
self.requirement_set.prepare_files(self.finder)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/req/req_set.py”, line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/req/req_set.py”, line 666, in _prepare_file
check_dist_requires_python(dist)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/utils/packaging.py”, line 48, in check_dist_requires_python
feed_parser.feed(metadata)
File “/usr/lib64/python2.7/email/feedparser.py”, line 177, in feed
self._input.push(data)
File “/usr/lib64/python2.7/email/feedparser.py”, line 99, in push
parts = data.splitlines(True)
AttributeError: ‘NoneType’ object has no attribute ‘splitlines’

I then repeated the original command, and got:
Error: couldn’t get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt:
Traceback (most recent call last):
File “/opt/eff.org/certbot/venv/bin/letsencrypt”, line 7, in
from certbot.main import main
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/main.py”, line 2, in
from certbot._internal import main as internal_main
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/_internal/main.py”, line 11, in
import zope.component
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/zope/component/init.py”, line 23, in
from zope.component.interfaces import IComponentArchitecture
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/zope/component/interfaces.py”, line 21, in
import zope.deferredimport
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/zope/deferredimport/init.py”, line 1, in
from zope.deferredimport.deferredmodule import initialize
File “/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/zope/deferredimport/deferredmodule.py”, line 18, in
import zope.proxy
ImportError: No module named proxy

Entering “certbot-auto” with no parameters produced the same error message.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.