kali 2019에서 2020으로 업그레이드 후, apt-get upgrade
단말기에서 기능 실행 시 python-faraday
올바르게 설정되지 않는 문제가 있습니다. 다음 오류가 표시됩니다.
Setting up faraday (3.10.2-0kali1) ...
Traceback (most recent call last):
File "/usr/bin/faraday-manage", line 11, in <module>
load_entry_point('faradaysec==3.10.2', 'console_scripts', 'faraday-manage')()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2443, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2449, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3/dist-packages/faraday/manage.py", line 40, in <module>
from faraday.client.persistence.server.server import _conf, FARADAY_UP, SERVER_URL
File "/usr/lib/python3/dist-packages/faraday/client/persistence/server/server.py", line 51, in <module>
from faraday.client.persistence.server.changes_stream import (
File "/usr/lib/python3/dist-packages/faraday/client/persistence/server/changes_stream.py", line 11, in <module>
from past.builtins import basestring
ImportError: cannot import name 'basestring' from 'past.builtins' (unknown location)
dpkg: error processing package faraday (--configure):
installed faraday package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python-faraday:
python-faraday depends on faraday; however:
Package faraday is not configured yet.
dpkg: error processing package python-faraday (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
faraday
python-faraday
E: Sub-process /usr/bin/dpkg returned an error code (1)
답변1
사용하고 싶지 않거나 설치하고 싶지 않다면 제거해 보는 것은 어떨까요? 노력하다
sudo apt remove faraday && sudo apt remove python-faraday
아니면 원하시면 시도해 보세요
sudo apt purge python-faraday && sudo apt install python-faraday -y