[openstack-dev] import urllib3 problem

Ian Cordasco sigmavirus24 at gmail.com
Tue Feb 14 17:05:59 UTC 2017


-----Original Message-----
From: Carmine Annunziata <carmine.annunziata02 at gmail.com>
Reply: OpenStack Development Mailing List (not for usage questions)
<openstack-dev at lists.openstack.org>
Date: February 14, 2017 at 10:46:09
To: openstack-dev at lists.openstack.org <openstack-dev at lists.openstack.org>
Subject:  [openstack-dev] import urllib3 problem

> Hi,
> I upgraded ubuntu 14.04 to 16.04 LTS and now during the ./stack.sh i got
> this problem.
> I upgraded with:
> sudo pip install urllib3 --upgrade
> but the problem is still there:
>
> 2017-02-14 15:54:40.894 | Traceback (most recent call last):
> 2017-02-14 15:54:40.894 | File "/opt/stack/requirements/.venv/bin/pip",
> line 7, in
> 2017-02-14 15:54:40.894 | from pip import main
> 2017-02-14 15:54:40.894 | File "/opt/stack/requirements/.
> venv/local/lib/python2.7/site-packages/pip/__init__.py", line 21, in
>
> 2017-02-14 15:54:40.895 | from
> pip._vendor.requests.packages.urllib3.exceptions
> import DependencyWarning
> 2017-02-14 15:54:40.895 | File "/opt/stack/requirements/.
> venv/local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py",
> line 62, in
> 2017-02-14 15:54:40.895 | from .packages.urllib3.exceptions import
> DependencyWarning
> 2017-02-14 15:54:40.895 | File "/opt/stack/requirements/.
> venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/__init__.py",
> line 29, in
> 2017-02-14 15:54:40.895 | import urllib3
> 2017-02-14 15:54:40.895 | ImportError: No module named urllib3
> 2017-02-14 15:54:40.904 | +inc/python:pip_install:1
> exit_trap
> 2017-02-14 15:54:40.908 | +./stack.sh:exit_trap:487 local
> r=1
> 2017-02-14 15:54:40.924 | ++./stack.sh:exit_trap:488 jobs
> -p
> 2017-02-14 15:54:40.935 | +./stack.sh:exit_trap:488 jobs=
> 2017-02-14 15:54:40.948 | +./stack.sh:exit_trap:491 [[ -n
> '' ]]
> 2017-02-14 15:54:40.952 | +./stack.sh:exit_trap:497
> kill_spinner
> 2017-02-14 15:54:40.967 | +./stack.sh:kill_spinner:383 '['
> '!' -z '' ']'
> 2017-02-14 15:54:40.982 | +./stack.sh:exit_trap:499 [[ 1
> -ne 0 ]]
> 2017-02-14 15:54:40.998 | +./stack.sh:exit_trap:500 echo
> 'Error on exit'
> 2017-02-14 15:54:40.999 | Error on exit
> 2017-02-14 15:54:41.002 | +./stack.sh:exit_trap:501
> generate-subunit 1487087613 67 fail
> 2017-02-14 15:54:41.817 | +./stack.sh:exit_trap:502 [[ -z
> /opt/stack/logs ]]
> 2017-02-14 15:54:41.821 | +./stack.sh:exit_trap:505
> /home/stack/devstack/tools/worlddump.py -d /opt/stack/logs
> 2017-02-14 15:54:43.088 | +./stack.sh:exit_trap:511 exit 1
> stack at coritel-VirtualBox:~/devstack$ sudo gedit
> /opt/stack/requirements/.venv/local/lib/python2.7/site-
> packages/pip/_vendor/requests/packages/__init__.py

Hi Carmine,

It looks like your virtualenv needs to be recreated. The version of
pip inside of it seems to be thoroughly broken.

--
Ian Cordasco



More information about the OpenStack-dev mailing list