The 'ndg-httpsclient' distribution was not found and is required by requests

Visualizando 1 post (de 1 do total)
  • Autor
    Posts
  • #12805
    Luis FatorBinario
    Administrador

    Ao tentar executar o certbot para criar um certificado SSL Lets Encrypt deparei-me com o seguinte erro:

    Traceback (most recent call last):
    File “/usr/bin/certbot”, line 6, in <module>
    from pkg_resources import load_entry_point
    File “/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py”, line 3019, in <module>
    @_call_aside
    File “/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py”, line 3003, in _call_aside
    f(*args, **kwargs)
    File “/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py”, line 3032, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
    File “/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py”, line 655, in _build_master
    ws.require(__requires__)
    File “/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py”, line 963, in require
    needed = self.resolve(parse_requirements(requirements))
    File “/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py”, line 849, in resolve
    raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The ‘ndg-httpsclient’ distribution was not found and is required by requests

    Isso acontece porque o certbot depende do Python para executar e nas últimas semanas parece estar havendo problemas com as dependências de pacotes entre os dois.

    Para sanar este problema específico instale o seguinte pacote:

    > apt-get install python-pip

    Em seguida execute:

    > pip install ndg-httpsclient

     

    Aguarde o fim da instalação e execute o certbot novamente.

Visualizando 1 post (de 1 do total)
  • Você deve fazer login para responder a este tópico.

©2014-2024 Fator Binário - Todos os direitos reservados

Fazer login com suas credenciais

Esqueceu sua senha?