그래서 Kali 컴퓨터에 Mycroft AI(Git 스타일)를 설치했습니다. 아무 문제 없이 build_host_setup_debian.sh를 실행했지만 dev_setup.sh를 실행하려고 하면 다음 오류가 발생합니다:
Searching for pip==7.1.2
Best match: pip 7.1.2
Processing pip-7.1.2-py2.7.egg
pip 7.1.2 is already the active version in easy-install.pth
Installing pip script to /home/nonroot/.virtualenvs/mycroft/bin
Installing pip2.7 script to /home/nonroot/.virtualenvs/mycroft/bin
Installing pip2 script to /home/nonroot/.virtualenvs/mycroft/bin
Using /home/nonroot/.virtualenvs/mycroft/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg
Processing dependencies for pip==7.1.2
Finished processing dependencies for pip==7.1.2
Traceback (most recent call last):
File "/home/nonroot/.virtualenvs/mycroft/bin/pip", line 11, in <module>
load_entry_point('pip==7.1.2', 'console_scripts', 'pip')()
File "/home/nonroot/.virtualenvs/mycroft/local/lib/python2.7/site- packages/pkg_resources/__init__.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/nonroot/.virtualenvs/mycroft/local/lib/python2.7/site- packages/pkg_resources/__init__.py", line 2569, in load_entry_point
return ep.load()
File "/home/nonroot/.virtualenvs/mycroft/local/lib/python2.7/site- packages/pkg_resources/__init__.py", line 2229, in load
return self.resolve()
File "/home/nonroot/.virtualenvs/mycroft/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2235, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/home/nonroot/.virtualenvs/mycroft/lib/python2.7/site-packages /pip-7.1.2-py2.7.egg/pip/__init__.py", line 15, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/home/nonroot/.virtualenvs/mycroft/lib/python2.7/site-packages /pip-7.1.2-py2.7.egg/pip/vcs/mercurial.py", line 10, in <module>
from pip.download import path_to_url
File "/home/nonroot/.virtualenvs/mycroft/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/download.py", line 38, in <module>
from pip._vendor import requests, six
File "/home/nonroot/.virtualenvs/mycroft/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/__init__.py", line 53, in <module>
from .packages.urllib3.contrib import pyopenssl
File "/home/nonroot/.virtualenvs/mycroft/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/contrib /pyopenssl.py", line 53, in <module>
import OpenSSL.SSL
File "/home/nonroot/.virtualenvs/mycroft/local/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/home/nonroot/.virtualenvs/mycroft/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 124, in <module>
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
이 오류를 어떻게 해결할 수 있나요?
답변1
이 문제를 해결 pyOpenSSL==16.0.0
하려면 요구사항.txt를 변경하세요 .pyOpenSSL==16.2.0
변경 후에는 pip 패키지를 다시 설치해야 합니다.
pip uninstall pyOpenSSL pip install pyOpenSSL==16.2.0
답변2
여기에 보고된 문제가 발생했다고 생각됩니다. https://github.com/MycroftAI/mycroft-core/issues/705
우리는 이 PR에서 이 문제를 해결했습니다. https://github.com/MycroftAI/mycroft-core/pull/751 기본적으로 이는 요구사항.txt의 pyOpenSSL 버전을 업데이트합니다. 이 수정 사항은 현재 mycroft-core의 "dev" 분기에 있으며 버전 0.8.13에서는 마스터로 이동될 예정입니다.
이렇게 변경한 후에 ~/.virtualenv 폴더를 삭제하고 dev_setup.sh를 다시 실행해야 할 수도 있습니다.