
毎月cronで次のコマンドを実行すると、このエラーが発生します。
/opt/letsencrypt/letsencrypt-auto certonly --quiet --standalone --renew-by-default -d example.org -d www.example.org
Creating virtual environment...
Installing Python packages...
Installation succeeded.
An unexpected error occurred:
DistributionNotFound: The 'ndg-httpsclient' distribution was not found and is required by requests
Please see the logfile 'certbot.log' for more details.
明らかに、「例」は私のドメインではなく、正しいドメインを使用しました。certbot.log
追加の詳細は提供されていません。
Traceback (most recent call last):
File "/root/.local/share/letsencrypt/bin/letsencrypt", line 11, in <module>
sys.exit(main())
File "/opt/letsencrypt/certbot/main.py", line 858, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File "/opt/letsencrypt/certbot/plugins/disco.py", line 183, in find_all
plugin_ep = PluginEntryPoint(entry_point)
File "/opt/letsencrypt/certbot/plugins/disco.py", line 34, in __init__
self.plugin_cls = entry_point.load()
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2201, in load
self.require(*args, **kwargs)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2218, in require
items = working_set.resolve(reqs, env, installer)
File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 830, in resolve
raise DistributionNotFound(req, requirers)
DistributionNotFound: The 'ndg-httpsclient' distribution was not found and is required by requests
私は何を見逃していますか?
答え1
オペレーティングシステムを指定していませんが、Ubuntu 18.04システムにpython-ndg-httpsclientパッケージをインストールすると問題が解決しました。
sudo apt-get install python-ndg-httpsclient
この回答が少し遅れる可能性があることを知っています。