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

EOFError: EOF when reading a line generated by pip/download.py", line 173 #3645

Closed
ssbarnea opened this issue May 2, 2016 · 4 comments
Closed
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@ssbarnea
Copy link
Contributor

ssbarnea commented May 2, 2016

  • Pip version: 8.1.1
  • Python version: 3.5
  • Operating System: darwin

A full gist with the error is available at https://gist.github.com/ssbarnea/9a70524632c49b452c70aa8c35a79193 and based on my current investigations it seems that this happens when the pypi server asks for basic authentication on package download. The current pypi server is configured to ask for authentication on download and upload but not on listing.

We tried to put credentials in all possible places but without success:

  • ~/.pypirc - using username and password fields
  • ~/.pypirc - included in the URL of the repository: like https://user:[email protected]
  • ~/.netrc - using standard syntax.

I am not sure that I need to mention that password prompts are not accepted by default, as we are doing CI around here.

@ssbarnea
Copy link
Contributor Author

ssbarnea commented May 2, 2016

As a note we discovered that, as a temporary workaround, we were able to create the virtual environment by adding --no-download to the virtual environment creation. The created virtualenvironment still has the holy-trinity pip, setuptools and wheels even when we use this option.

This bug is related to #3644 and #3643 but is not a duplicate of them.

@iurisilvio
Copy link

I had the same error with a private repository with wrong credentials, running with gitlab-ci. I fixed the credentials and it worked fine, with --extra-index-url=https://user:[email protected].

Any invalid index url/credentials will prompt for your credentials and break the build, even if one of them are correct.

@iurisilvio
Copy link

A fix for this issue can be a better error message or a flag to avoid prompts.

@dstufft
Copy link
Member

dstufft commented Mar 31, 2017

You need to use pip's configuration files, which are located at https://pip.pypa.io/en/stable/user_guide/#configuration.

You can also avoid prompts with the --no-input flag.

@dstufft dstufft closed this as completed Mar 31, 2017
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

3 participants