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

pip 19.2 install raises "Failed to parse" if username contains '@' #6776

Closed
cletomartin opened this issue Jul 23, 2019 · 2 comments
Closed
Labels
auto-locked Outdated issues that have been locked by automation resolution: duplicate Duplicate of an existing issue/PR

Comments

@cletomartin
Copy link

Environment

  • pip version: 19.2
  • Python version: 3.7.4
  • OS: RHEL

Description

It seems like pip 19.2 cannot handle the case of having an email as username in index-url:

$ pip install test
Looking in indexes: https://user_at_example.com:****@url-to-pypi-server
Collecting test
...

But using [email protected] I get:

pip install test
Looking in indexes: https://user%40example.com:****@url-to-pypi-server
Collecting test
ERROR: Could not install packages due to an EnvironmentError: Failed to parse: https://[email protected]:pass@url-to-pypi-server

Expected behavior

User names with symbols like @ should be supported too. It works for 19.1.1.

How to Reproduce

Just use @ as part of the user name.

Output

Provided in the examples above.

@markuszoeller
Copy link

markuszoeller commented Jul 23, 2019

A possible workaround is to urlencode the @ in the username with %40.

@pradyunsg
Copy link
Member

Closing this in favor of #6775. AFAICT, they're the same underlying issue.

@pradyunsg pradyunsg added resolution: duplicate Duplicate of an existing issue/PR and removed S: needs triage Issues/PRs that need to be triaged labels Jul 23, 2019
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Aug 22, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 22, 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 resolution: duplicate Duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

3 participants