cannot import name SourceDistribution

Bug #1860430 reported by wes hayutin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Unassigned

Bug Description

https://6d9b97dc35f887a99105-3214406b4544fce2f9d807df6ea4fe3f.ssl.cf5.rackcdn.com/701994/1/gate/tripleo-ci-centos-7-standalone-upgrade-stein/31ddbe8/job-output.txt

2020-01-21 12:36:20.308885 | primary | Python Command is:
2020-01-21 12:36:20.308950 | primary | python2
2020-01-21 12:36:20.309056 | primary | Running install_deps
2020-01-21 12:36:20.353926 | primary | sudo-1.8.23-4.el7_7.1.x86_64
2020-01-21 12:36:20.386770 | primary | Installing RPM packages libselinux-python python2-setuptools python2-virtualenv python-pip
2020-01-21 12:36:20.601580 | primary | Loaded plugins: fastestmirror
2020-01-21 12:36:20.680841 | primary | Loading mirror speeds from cached hostfile
2020-01-21 12:36:20.958920 | primary | Package libselinux-python-2.5-14.1.el7.x86_64 already installed and latest version
2020-01-21 12:36:21.036817 | primary | Package python-setuptools-0.9.8-7.el7.noarch already installed and latest version
2020-01-21 12:36:21.114628 | primary | Package python-virtualenv-15.1.0-2.el7.noarch already installed and latest version
2020-01-21 12:36:21.301451 | primary | Nothing to do
2020-01-21 12:36:21.683427 | primary | checking python modules
2020-01-21 12:36:22.081978 | primary | pip:19.3.1 virtualenv:16.7.9 setuptools:44.0.0
2020-01-21 12:36:22.082254 | primary |  SUCCESS: install-deps succeeded. 
2020-01-21 12:36:22.082719 | primary | Creating virtualenv at /home/zuul/workspace/.quickstart
2020-01-21 12:36:22.178239 | primary | No LICENSE.txt / LICENSE found in source
2020-01-21 12:36:22.179511 | primary | New python executable in /home/zuul/workspace/.quickstart/bin/python2
2020-01-21 12:36:22.179883 | primary | Also creating executable in /home/zuul/workspace/.quickstart/bin/python
2020-01-21 12:36:22.764783 | primary | Installing setuptools, pip, wheel...
2020-01-21 12:36:27.558765 | primary | done.
2020-01-21 12:36:27.992874 | primary | Traceback (most recent call last):
2020-01-21 12:36:27.993361 | primary | File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
2020-01-21 12:36:27.993594 | primary | "__main__", fname, loader, pkg_name)
2020-01-21 12:36:27.993900 | primary | File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
2020-01-21 12:36:27.994075 | primary | exec code in run_globals
2020-01-21 12:36:27.994587 | primary | File "/home/zuul/workspace/.quickstart/lib/python2.7/site-packages/pip/__main__.py", line 19, in <module>
2020-01-21 12:36:27.994739 | primary | sys.exit(_main())
2020-01-21 12:36:27.995252 | primary | File "/home/zuul/workspace/.quickstart/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 73, in main
2020-01-21 12:36:27.995637 | primary | command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
2020-01-21 12:36:27.996225 | primary | File "/home/zuul/workspace/.quickstart/lib/python2.7/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
2020-01-21 12:36:27.996513 | primary | module = importlib.import_module(module_path)
2020-01-21 12:36:27.996885 | primary | File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
2020-01-21 12:36:27.997025 | primary | __import__(name)
2020-01-21 12:36:27.997600 | primary | File "/home/zuul/workspace/.quickstart/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 24, in <module>
2020-01-21 12:36:27.997932 | primary | from pip._internal.cli.req_command import RequirementCommand
2020-01-21 12:36:27.998422 | primary | File "/home/zuul/workspace/.quickstart/lib/python2.7/site-packages/pip/_internal/cli/req_command.py", line 20, in <module>
2020-01-21 12:36:27.998694 | primary | from pip._internal.operations.prepare import RequirementPreparer
2020-01-21 12:36:27.999140 | primary | File "/home/zuul/workspace/.quickstart/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 16, in <module>
2020-01-21 12:36:27.999342 | primary | from pip._internal.distributions import (
2020-01-21 12:36:27.999802 | primary | File "/home/zuul/workspace/.quickstart/lib/python2.7/site-packages/pip/_internal/distributions/__init__.py", line 1, in <module>
2020-01-21 12:36:28.000065 | primary | from pip._internal.distributions.source import SourceDistribution
2020-01-21 12:36:28.000267 | primary | ImportError: cannot import name SourceDistribution
2020-01-21 12:36:28.445090 | primary | ERROR
2020-01-21 12:36:28.445503 | primary | {
2020-01-21 12:36:28.445630 | primary | "delta": "0:00:25.460951",
2020-01-21 12:36:28.445762 | primary | "end": "2020-01-21 12:36:28.018773",
2020-01-21 12:36:28.445871 | primary | "msg": "non-zero return code",
2020-01-21 12:36:28.445975 | primary | "rc": 1,
2020-01-21 12:36:28.446076 | primary | "start": "2020-01-21 12:36:02.557822"
2020-01-21 12:36:28.446176 | primary | }

Tags: alert
Revision history for this message
chandan kumar (chkumar246) wrote :

https://github.com/pypa/pip/issues/7217 tracks this issue. pip==20.0.1 will fix it.

Revision history for this message
wes hayutin (weshayutin) wrote :
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-2 → ussuri-3
wes hayutin (weshayutin)
Changed in tripleo:
status: Triaged → 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.