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

Proxy ignored with sudo pip3 command #93

Open
1 of 2 tasks
mk-pmb opened this issue Feb 18, 2023 · 2 comments
Open
1 of 2 tasks

Proxy ignored with sudo pip3 command #93

mk-pmb opened this issue Feb 18, 2023 · 2 comments

Comments

@mk-pmb
Copy link

mk-pmb commented Feb 18, 2023

Good Habit Checklist for Issue Reporting

Checkout Mastering Markdown · GitHub Guides if you needs help on the GitHub-flavored Markdown syntax. You may remove sections and contents that don't apply.

  • I've searched the issue tracker and is pretty sure that there's no duplicate issue already filed
  • I've built the latest development snapshot using the instructions in README and verified that the issue can still be reproduced (for bug reports)
    • Bug is in README.md in master, so no build necessary.

Issue Reproduce Instructions

  1. Follow the install instructions for Ubuntu
  2. Especially sudo pip3 install WoeUSB-ng

Expected Behavior

Collecting WoeUSB-ngCollecting termcolor … etc.

Current Behavior

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f542d5577c0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/woeusb-ng/

Info of My Environment

  • I use a proxy, defined in environment variables http_proxy and https_proxy

Solution

any of these:

  • Invoke sudo with -E
  • Invoke sudo with --preserve-env
  • any other means to set the proxy variables so pip can see them.

I suggest we use the -E variant in the install instructions.

@WaxyMocha
Copy link
Member

Hi,
this doesn't work?
https://stackoverflow.com/a/20818379

@mk-pmb
Copy link
Author

mk-pmb commented Feb 20, 2023

@WaxyMocha
Giving the proxy as explicit argument would probably work as well. However, especially for more complex proxy configs (e.g. with exclude lists), it's waaaay easier to just type -E to have sudo pass the environment. The new command in the readme would thus be sudo -E pip3 install WoeUSB-ng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants