Dificuldade de configurar o Mycroft

0

Estou instalando o Mycroft AI no meu computador Kali (estilo Git). Eu corri o build_host_setup_debian.sh sem nenhum problema, mas quando eu tento executar dev_setup.sh eu recebo o seguinte erro:

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'

Como corrijo esse erro?

    
por Megalonychidae 12.05.2017 / 01:39

2 respostas

0

alterando pyOpenSSL==16.0.0 em requirements.txt para pyOpenSSL==16.2.0 corrige isso.

Você precisa reinstalar o pacote pip após a alteração.

pip uninstall pyOpenSSL pip install pyOpenSSL==16.2.0

    
por 13.05.2017 / 12:27
0

Acredito que você esteja enfrentando o problema relatado aqui: link

Nós incorporamos uma correção para isso com este PR:   link Basicamente, isso atualiza a versão do pyOpenSSL no arquivo requirements.txt. Esta correção está no ramo 'dev' do mycroft-core agora e passará para master com o release 0.8.13

Após essa alteração, você provavelmente terá que excluir a pasta ~ / .virtualenv e, em seguida, executar novamente o dev_setup.sh

    
por 18.05.2017 / 06:25