-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Comments
As a note we discovered that, as a temporary workaround, we were able to create the virtual environment by adding This bug is related to #3644 and #3643 but is not a duplicate of them. |
I had the same error with a private repository with wrong credentials, running with Any invalid index url/credentials will prompt for your credentials and break the build, even if one of them are correct. |
A fix for this issue can be a better error message or a flag to avoid prompts. |
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 |
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.
The text was updated successfully, but these errors were encountered: