question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proxy value parsing error

See original GitHub issue

Environment

  • pip version:19.2.3
  • Python version:3.7.4
  • OS:Windows 10

Description I use a proxy and I was using pip to install a few packages but as soon as I upgraded my pip to 19.2.3 I keep getting an error ERROR: Could not install packages due to an EnvironmentError: Failed to parse: http://name:pass@proxy.com:80

My password has special characters like “(”, “)”, “%”, I guess it is causing the pip to escape midway. Once I changed my password with simpler special characters like “!”, it worked.

Expected behavior Usual pip install behavior

How to Reproduce

All this with --proxy

  1. Try installing packages using pip using earlier versions, I used 19.1.1 or earlier.
  2. Then upgrade pip to 19.2.3 and try installing packages.

Output

>pip3 --proxy http://name:pass@proxy.com:80 install -r requirements.txt
ERROR: Could not install packages due to an EnvironmentError: Failed to parse: http://name:pass@proxy.com:80

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
chrahuntcommented, Sep 19, 2019

Hi @S-Mann, yes if you want to use any URL-special characters you just need to percent-encode them.

@kpetey123, can you please create a separate issue and provide the command you are executing and the output? Along with the other information requested in the issue form please, that would help a lot. Thank you!

1reaction
kpetey123commented, Sep 13, 2019

Environment

  • Pip: 19.2.3
  • Python: 3.6
  • OS: Windows 10

I am having a similar issue, but my password does not have any special characters. below is what I am tryinig to use (not my real password, but same type of format)

pip install --proxy wss-master\dt24358:0Iuy9bnm@dstproxy.dstcorp.net:9119 ibm_db

And I am getting the same error: ERROR: Could not install packages due to an EnvironmentError: Failed to parse:

I have tried encoding the @ with %40 but that doesn’t work either. Any help would be appreciated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

602712 – ValueError: Error parsing "proxy = 'http'": URL must ...
> Error parsing "proxy = 'http'" This implies that yum is not seeing "proxy = http://proxy-host" but "proxy = http" ...looking at anaconda,...
Read more >
Why does https.Agent throw a parse error when proxying via ...
(I've elided the complementary http agent for brevity.) I create a proxy server, as such: const proxy = httpProxy.createProxyServer({});.
Read more >
Parsing issue in outbound proxy - SAP Community
I am currently working on Proxy to Soap( Sync) interface,while triggering proxy data from sap end getting below error and message is failing ......
Read more >
PI18933;8.5.5: sip proxy parsing error results "internal server ...
The SIP Proxy is unable to parse the message. A parsing error occurs in the routing information portion of the message. It results...
Read more >
What to do when getting parsing errors in Python? - Smartproxy
The cherry on the cake is that by the end of this article, you'll have learnt how to resolve such issues. Parsing errors...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found