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

"cget install" fails for items accessible to wget; proxy consideration #77

Open
jbsysadmin opened this issue Mar 27, 2020 · 3 comments
Open

Comments

@jbsysadmin
Copy link

Is there anything that can be edited, or set to allow cget to function with proxy defined?

Context: python-3.8.1, attempts to install SAIGE (https://github.com/weizhouUMICH/SAIGE) fail because cget can't find a dependency known to be at specified location.

Util wget, R, and the OS (Centos 6.x, plus newer custom compiled items) have proxy settings configured. Installs not using cget, but downloading remote resources, all succeed in retrieving what they need.

Any leads?

@pfultz2
Copy link
Owner

pfultz2 commented Mar 28, 2020

cget uses the six.moves.urllib.request.FancyURLopener to download URLs. This is a wrapper around urllib.FancyURLopener.

I see now that there is a urllib.request.ProxyHandler class that can handle proxies. I should probably switch to that in cget. Let me try to figure out how this class works.

All the downloads happen in the download_to function.

@jbsysadmin
Copy link
Author

Hello again! Any luck having a version of cget which can function with a proxy URL defined? The maintainers of SAIGE insist on using cget, but their installer won't work in a proxy setting. Building on non-proxy VMs, then rsyncing over is not an option; compilations should complete on the allocated work machines.

@pfultz2
Copy link
Owner

pfultz2 commented Apr 22, 2020

So it looks like python should use the same proxy on the system by default. Maybe it doesn't detect them. Either way, you should be able to override them using environment variables like HTTP_PROXY or HTTPS_PROXY. This is what is shows here.

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