Let's Encryptのエラー「ImportError: cannot import name _remove_dead_weakref」の対処法
エラーメッセージ
certbot-auto(letsencrypt-auto)を実行した時に出たエラー。
code:エラー
/home/nwtgck/letsencrypt/letsencrypt-auto has insecure permissions!
Upgrading certbot-auto 1.0.0 to 1.1.0...
Replacing certbot-auto...
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 <module>
from certbot.main import main
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 6, in <module>
import logging.handlers
File "/usr/lib/python2.7/logging/__init__.py", line 26, in <module>
import sys, os, time, cStringIO, traceback, warnings, weakref, collections
File "/usr/lib/python2.7/weakref.py", line 14, in <module>
from _weakref import (
ImportError: cannot import name _remove_dead_weakref
対処法
以下を実行すれば対処できた。
$ sudo rm -rf /opt/eff.org
何を削除しているのかは調べてないが対処はできた。