Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing pip upgrade on CI fails since 20.0 release #25567

Closed
jdm opened this issue Jan 21, 2020 · 4 comments
Closed

Installing pip upgrade on CI fails since 20.0 release #25567

jdm opened this issue Jan 21, 2020 · 4 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented Jan 21, 2020

"/repo/python/_virtualenv2.7/bin/python2.7" "-m" "pip" "install" "-I" "-U" "pip" failed with error code 1:
Output:
Error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/repo/python/_virtualenv2.7/lib/python2.7/site-packages/pip/__main__.py", line 19, in <module>
    sys.exit(_main())
  File "/repo/python/_virtualenv2.7/local/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "/repo/python/_virtualenv2.7/local/lib/python2.7/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
    module = importlib.import_module(module_path)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/repo/python/_virtualenv2.7/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand
  File "/repo/python/_virtualenv2.7/local/lib/python2.7/site-packages/pip/_internal/cli/req_command.py", line 20, in <module>
    from pip._internal.operations.prepare import RequirementPreparer
  File "/repo/python/_virtualenv2.7/local/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 16, in <module>
    from pip._internal.distributions import (
  File "/repo/python/_virtualenv2.7/local/lib/python2.7/site-packages/pip/_internal/distributions/__init__.py", line 1, in <module>
    from pip._internal.distributions.source import SourceDistribution
ImportError: cannot import name SourceDistribution

pypa/pip#7217 seems to have many people experiencing the same issue before this point.

@Flid
Copy link

@Flid Flid commented Jan 21, 2020

Our (completely unrelated) project has just started failing with the same symptoms on python 3.5, 3.6 and 3.7. Looks like pip guys have broken something.

@jdm jdm changed the title Installing pip upgrade on CI fails since 0.20 release Installing pip upgrade on CI fails since 20.0 release Jan 21, 2020
@jdm
Copy link
Member Author

@jdm jdm commented Jan 21, 2020

I'm going to try following pypa/pip#7217 (comment) and installing a specific known working version.

@Flid
Copy link

@Flid Flid commented Jan 21, 2020

pypa/pip#7620 - that's the right issue to track I guess

bors-servo added a commit that referenced this issue Jan 21, 2020
Install pinned version of pip when upgrading

Fixes #25567.
bors-servo added a commit that referenced this issue Jan 21, 2020
[WIP] Install pinned version of pip when upgrading

Fixes #25567.
@jdm
Copy link
Member Author

@jdm jdm commented Jan 21, 2020

20.0.1 was released with a fix and CI jobs are no longer failing immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.