nginx - Certbot :ImportError: No module named 'requests.packages.urllib3 -


i use nginx on centos 7.3.

i installed certbot following https://certbot.eff.org/#centosrhel7-nginx

there error when running certbot --nginx:

[root@demo src]# certbot --nginx traceback (most recent call last):   file "/usr/bin/certbot", line 9, in <module>     load_entry_point('certbot==0.14.1', 'console_scripts', 'certbot')()   file "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 564, in load_entry_point     return get_distribution(dist).load_entry_point(group, name)   file "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2662, in load_entry_point     return ep.load()   file "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2316, in load     return self.resolve()   file "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2322, in resolve     module = __import__(self.module_name, fromlist=['__name__'], level=0)   file "/usr/lib/python2.7/site-packages/certbot/main.py", line 14, in <module>     certbot import account   file "/usr/lib/python2.7/site-packages/certbot/account.py", line 17, in <module>     acme import messages   file "/usr/lib/python2.7/site-packages/acme/messages.py", line 4, in <module>     acme import challenges   file "/usr/lib/python2.7/site-packages/acme/challenges.py", line 10, in <module>     import requests   file "/usr/lib/python2.7/site-packages/requests/__init__.py", line 58, in <module>     . import utils   file "/usr/lib/python2.7/site-packages/requests/utils.py", line 32, in <module>     .exceptions import invalidurl   file "/usr/lib/python2.7/site-packages/requests/exceptions.py", line 10, in <module>     .packages.urllib3.exceptions import httperror basehttperror   file "/usr/lib/python2.7/site-packages/requests/packages/__init__.py", line 95, in load_module     raise importerror("no module named '%s'" % (name,)) importerror: no module named 'requests.packages.urllib3' 

packages:

[root@demo src]# pip list acme (0.14.1) backports.ssl-match-hostname (3.4.0.2) certbot (0.14.1) certifi (2017.7.27.1) cffi (1.6.0) chardet (3.0.4) cheetah (2.4.4) cloud-init (0.7.6) configargparse (0.11.0) configobj (4.7.2) cryptography (1.3.1) decorator (3.4.0) enum34 (1.0.4) future (0.16.0) idna (2.6) iniparse (0.4) ipaddress (1.0.16) ipy (0.75) jinja2 (2.9.6) jsonpatch (1.16) jsonpointer (1.10) kitchen (1.1.1) markdown (2.6.8) markupsafe (1.0) mock (1.0.1) ndg-httpsclient (0.3.2) oauth (1.0.1) parsedatetime (1.5) perf (0.1) pip (9.0.1) ply (3.4) policycoreutils-default-encoding (0.1) prettytable (0.7.2) psutil (2.2.1) pyasn1 (0.1.9) pycparser (2.14) pycurl (7.19.0) pygobject (3.14.0) pygpgme (0.3) pyliblzma (0.5.3) pyopenssl (0.13.1) pyparsing (1.5.6) pyrfc3339 (1.0) python2-pythondialog (3.3.0) pytz (2012d) pyudev (0.15) pyxattr (0.5.1) pyyaml (3.12) requests (2.18.4) seobject (0.1) sepolicy (1.1) setuptools (36.2.7) 6 (1.9.0) slip (0.4.0) slip.dbus (0.4.0) urlgrabber (3.10) urllib3 (1.22) yum-axelget (1.0.4) yum-metadata-parser (1.1.4) zope.component (4.1.0) zope.event (4.0.3) zope.interface (4.0.5) 

what should do?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -