How to Fix ImportError: cannot import name _remove_dead_weakref
Cara mengatasi error ImportError: cannot import name _remove_dead_weakref saat menambahkan domain atau renew SSL Let's Encrypt, dengan detail error:
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 5, 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
Kesalahan ini berasal dari Python standard library di sistem agan. Sepertinya ada masalah dengan instalasi Python atau virtual environment yang digunakan oleh Certbot.
Untuk mengatasi atau menyelesaikan masalah tersebut, silahkan jalankan syntax berikut
sudo rm -rf /opt/eff.org
lalu dicoba kembali
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 5, 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
Kesalahan ini berasal dari Python standard library di sistem agan. Sepertinya ada masalah dengan instalasi Python atau virtual environment yang digunakan oleh Certbot.
Untuk mengatasi atau menyelesaikan masalah tersebut, silahkan jalankan syntax berikut
sudo rm -rf /opt/eff.org
lalu dicoba kembali
Posting Komentar untuk "How to Fix ImportError: cannot import name _remove_dead_weakref"