Traceback (most recent call last):
File "/usr/bin/letsencrypt", line 9, in
load_entry_point('letsencrypt==0.4.1', 'console_scripts', 'letsencrypt')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2569, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2229, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2235, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
ImportError: No module named letsencrypt.cli
Can anyone please tell me what the problem is and what I should do to resolve this? Thanks!
letsencrypt renew
Traceback (most recent call last):
File "/usr/bin/letsencrypt", line 9, in
load_entry_point('letsencrypt==0.4.1', 'console_scripts', 'letsencrypt')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2569, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2229, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2235, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/lib/python2.7/dist-packages/letsencrypt/cli.py", line 34, in
from letsencrypt import client
File "/usr/lib/python2.7/dist-packages/letsencrypt/client.py", line 27, in
from letsencrypt import storage
File "/usr/lib/python2.7/dist-packages/letsencrypt/storage.py", line 7, in
import configobj
EOFError: EOF read where object expected
It sounds like your letsencrypt and ConfigObj (a popular Python library for parsing configuration files, used by letsencrypt) installs are damaged.
I might suggest reinstalling those two packages with “apt install --reinstall python-configobj python-letsencrypt” – and any other affected packages – but this is above my pay grade.
I’m curious to know if there were any issues when they were installed, if anything happened later (e.g. some sort of botched pip upgrade), or if your systems is having other issues, but even if you told me, i don’t know what to do.
I did not have pip installed "pip returned command not found", and I haven't messed intentionally with python libraries. No clue how they got corrupted, but it's back and working