pip_install failed with 'ImportError: No module named six'

Bug #1694904 reported by Sam Wan
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Unassigned

Bug Description

2017-06-01 03:33:31.868 | + lib/infra:install_infra:35 : pip_install /opt/stack/new/requirements
2017-06-01 03:33:32.645 | + inc/python:pip_install:327 : env http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS= SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite /opt/stack/new/requirements/.venv/bin/pip install -c /opt/stack/new/requirements/upper-constraints.txt /opt/stack/new/requirements
2017-06-01 03:33:33.149 | Ignoring jsbeautifier: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.151 | Ignoring jsbeautifier: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.198 | Ignoring hyperframe: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.201 | Ignoring hyperframe: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.202 | Ignoring cssutils: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.205 | Ignoring cssutils: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.235 | Ignoring kaitaistruct: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.238 | Ignoring kaitaistruct: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.287 | Ignoring tornado: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.290 | Ignoring tornado: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.340 | Ignoring ruamel.yaml: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.344 | Ignoring ruamel.yaml: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.346 | Ignoring html2text: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.349 | Ignoring html2text: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.376 | Ignoring dnspython3: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.378 | Ignoring dnspython3: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.383 | Ignoring hpack: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.386 | Ignoring hpack: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.403 | Ignoring pyperclip: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.407 | Ignoring pyperclip: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.426 | Ignoring brotlipy: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.428 | Ignoring brotlipy: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.445 | Ignoring mypy: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.447 | Ignoring mypy: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.461 | Ignoring urwid: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.464 | Ignoring urwid: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.486 | Ignoring argh: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.489 | Ignoring argh: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.614 | Ignoring blinker: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.617 | Ignoring blinker: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.651 | Ignoring typed-ast: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.654 | Ignoring typed-ast: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.667 | Ignoring h2: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.669 | Ignoring h2: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.675 | Ignoring mitmproxy: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.677 | Ignoring mitmproxy: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.704 | Ignoring EditorConfig: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.706 | Ignoring EditorConfig: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.746 | Ignoring watchdog: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.748 | Ignoring watchdog: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.773 | Ignoring backports-abc: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.775 | Ignoring backports-abc: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.792 | Ignoring pathtools: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.794 | Ignoring pathtools: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.845 | Ignoring sortedcontainers: markers 'python_version == "3.4"' don't match your environment
2017-06-01 03:33:33.848 | Ignoring sortedcontainers: markers 'python_version == "3.5"' don't match your environment
2017-06-01 03:33:33.878 | Processing /opt/stack/new/requirements
2017-06-01 03:33:34.709 | Complete output from command python setup.py egg_info:
2017-06-01 03:33:34.713 | Traceback (most recent call last):
2017-06-01 03:33:34.713 | File "<string>", line 1, in <module>
2017-06-01 03:33:34.713 | File "/tmp/pip-XtWVre-build/setup.py", line 29, in <module>
2017-06-01 03:33:34.713 | pbr=True)
2017-06-01 03:33:34.713 | File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
2017-06-01 03:33:34.713 | _setup_distribution = dist = klass(attrs)
2017-06-01 03:33:34.713 | File "/opt/stack/new/requirements/.venv/lib/python2.7/site-packages/setuptools/dist.py", line 323, in __init__
2017-06-01 03:33:34.713 | _Distribution.__init__(self, attrs)
2017-06-01 03:33:34.713 | File "/usr/lib64/python2.7/distutils/dist.py", line 287, in __init__
2017-06-01 03:33:34.713 | self.finalize_options()
2017-06-01 03:33:34.713 | File "/opt/stack/new/requirements/.venv/lib/python2.7/site-packages/setuptools/dist.py", line 392, in finalize_options
2017-06-01 03:33:34.713 | ep.load()(self, ep.name, value)
2017-06-01 03:33:34.713 | File "/opt/stack/new/requirements/.venv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2303, in load
2017-06-01 03:33:34.713 | return self.resolve()
2017-06-01 03:33:34.713 | File "/opt/stack/new/requirements/.venv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2309, in resolve
2017-06-01 03:33:34.713 | module = __import__(self.module_name, fromlist=['__name__'], level=0)
2017-06-01 03:33:34.713 | File "/opt/stack/new/requirements/.venv/lib/python2.7/site-packages/pbr/core.py", line 55, in <module>
2017-06-01 03:33:34.713 | from pbr import util
2017-06-01 03:33:34.714 | File "/opt/stack/new/requirements/.venv/lib/python2.7/site-packages/pbr/util.py", line 86, in <module>
2017-06-01 03:33:34.714 | import pbr.hooks
2017-06-01 03:33:34.714 | File "/opt/stack/new/requirements/.venv/lib/python2.7/site-packages/pbr/hooks/__init__.py", line 16, in <module>
2017-06-01 03:33:34.714 | from pbr.hooks import backwards
2017-06-01 03:33:34.714 | File "/opt/stack/new/requirements/.venv/lib/python2.7/site-packages/pbr/hooks/backwards.py", line 17, in <module>
2017-06-01 03:33:34.714 | from pbr import packaging
2017-06-01 03:33:34.714 | File "/opt/stack/new/requirements/.venv/lib/python2.7/site-packages/pbr/packaging.py", line 33, in <module>
2017-06-01 03:33:34.714 | from setuptools.command import develop
2017-06-01 03:33:34.714 | File "/opt/stack/new/requirements/.venv/lib/python2.7/site-packages/setuptools/command/develop.py", line 11, in <module>
2017-06-01 03:33:34.714 | from setuptools.command.easy_install import easy_install
2017-06-01 03:33:34.714 | File "/opt/stack/new/requirements/.venv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 49, in <module>
2017-06-01 03:33:34.714 | from setuptools.py27compat import rmtree_safe
2017-06-01 03:33:34.714 | File "/opt/stack/new/requirements/.venv/lib/python2.7/site-packages/setuptools/py27compat.py", line 7, in <module>
2017-06-01 03:33:34.714 | import six
2017-06-01 03:33:34.714 | ImportError: No module named six
2017-06-01 03:33:34.714 |
2017-06-01 03:33:34.714 | ----------------------------------------
2017-06-01 03:33:34.714 | Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-XtWVre-build/

Revision history for this message
Artur Basiak (artur-basiak) wrote :

The problem is with pypa/setuptools project. Please see: https://github.com/pypa/setuptools/pull/1043

Revision history for this message
Laurent DURAND (ldurand) wrote :

I've faced a similar issue using DevStack :
2017-06-01 09:50:53.725 | import six
2017-06-01 09:50:53.725 | ImportError: No module named six

I've solved this issue using following command :
$ /opt/stack/requirements/.venv/bin/pip install six

Then I've restarted stack.sh and it's OK.

Revision history for this message
Dmitry Stepanenko (dstepanenko) wrote :

Workaround from Laurent worked for me

Revision history for this message
Sam Wan (sam-wan) wrote :

This issue has been fixed in upstream pypa/setuptools.
https://github.com/pypa/setuptools/pull/1043

Changed in devstack:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.