Skip to content

Pip locks up after failing to download a package due to network error. #5034

Closed
@Euphorbium

Description

@Euphorbium
  • Pip version: 9.0.1
  • Python version: 3.5.2
  • Operating system: Mac

Description:

If you try to install a package from git repository, with package pinned to a tag or a commit, and this fails due to network issues, all other attempts give

Obtaining django from git+https://github.com/Euphorbium/django.git@reverse-multithreading#egg=django (from -r requirements.txt (line 6))
  Complete output from command git rev-parse HEAD:
  fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
  Use '--' to separate paths from revisions, like this:
  'git <command> [<revision>...] -- [<file>...]'
  HEAD
  
  ----------------------------------------
Command "git rev-parse HEAD" failed with error code 128 in /pipeline/source/src/django

removing the cache directory does not help.

What I've run:

pip install --cache-dir ${pip_download_cache} -r requirements.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions