473,400 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

setuptools, ez_setup over http proxy

I've recently configured my network such that I use squid as a http
proxy. I'd now like to be able to use setuptools and ez_setup via this
proxy. Is this possible? If so, how do I do it?

The most that the setuptools documentation says is
(http://peak.telecommunity.com/DevCenter/setuptools):

"....If you are behind an NTLM-based firewall that prevents Python
programs from accessing the net directly, you may wish to first install
and use the APS proxy server, which lets you get past such firewalls in
the same way that your web browser(s) do....."

ps. I'm not sure that this is the right forum for this question. If it
isn't feel free to point me to the right place.

Oct 14 '05 #1
5 9796
yoda wrote:
I've recently configured my network such that I use squid as a http
proxy. I'd now like to be able to use setuptools and ez_setup via this
proxy. Is this possible? If so, how do I do it?
The key thing is just that Python's urllib module needs to be able to
retrieve web pages and download files. Try pulling up your Python
interpreter and retrieving a page with urllib. If it works, you're
good to go, and no need to bother with anything else.

If it doesn't work, try Jay's suggestions for setting environment
variables, or consult the urllib doc and/or code for more details on
how urllib finds out what proxy to use.
The most that the setuptools documentation says is
(http://peak.telecommunity.com/DevCenter/setuptools):

"....If you are behind an NTLM-based firewall that prevents Python
programs from accessing the net directly, you may wish to first install
and use the APS proxy server, which lets you get past such firewalls in
the same way that your web browser(s) do....."
Yeah, I mention this because by far the most common cause of problems
for Windows users is that they're behind one of those infernal
NTLM-based firewalls and thus can't use urllib unaided.

ps. I'm not sure that this is the right forum for this question. If it
isn't feel free to point me to the right place.


The distutils-sig mailing list is the best place to ensure you get an
answer relatively quickly, since I don't subscribe to this list, just
skim it from time to time.

Oct 14 '05 #2
yoda wrote:
I've recently configured my network such that I use squid as a http
proxy. I'd now like to be able to use setuptools and ez_setup via this
proxy. Is this possible? If so, how do I do it?
The key thing is just that Python's urllib module needs to be able to
retrieve web pages and download files. Try pulling up your Python
interpreter and retrieving a page with urllib. If it works, you're
good to go, and no need to bother with anything else.

If it doesn't work, try Jay's suggestions for setting environment
variables, or consult the urllib doc and/or code for more details on
how urllib finds out what proxy to use.
The most that the setuptools documentation says is
(http://peak.telecommunity.com/DevCenter/setuptools):

"....If you are behind an NTLM-based firewall that prevents Python
programs from accessing the net directly, you may wish to first install
and use the APS proxy server, which lets you get past such firewalls in
the same way that your web browser(s) do....."
Yeah, I mention this because by far the most common cause of problems
for Windows users is that they're behind one of those infernal
NTLM-based firewalls and thus can't use urllib unaided.

ps. I'm not sure that this is the right forum for this question. If it
isn't feel free to point me to the right place.


The distutils-sig mailing list is the best place to ensure you get an
answer relatively quickly, since I don't subscribe to this list, just
skim it from time to time.

Oct 14 '05 #3

yoda wrote:
I've recently configured my network such that I use squid as a http
proxy. I'd now like to be able to use setuptools and ez_setup via this
proxy. Is this possible? If so, how do I do it?

The most that the setuptools documentation says is
(http://peak.telecommunity.com/DevCenter/setuptools):

"....If you are behind an NTLM-based firewall that prevents Python
programs from accessing the net directly, you may wish to first install
and use the APS proxy server, which lets you get past such firewalls in
the same way that your web browser(s) do....."

ps. I'm not sure that this is the right forum for this question. If it
isn't feel free to point me to the right place.


Hi,

This is really an urllib2 question ...

setup an environment variable "HTTP_PROXY" that points to your proxy
server, of the form:

user:password@server:port

urllib2 doco will probably have more details

Ray Smith

Oct 14 '05 #4
Thanks guys,
Incidentally, I had already tried setting the env variable $http_proxy
but that didn't seem to work.

That being said, I'm moving this discussion to the distutils-SIG
mailing list while I carry out some tests.

Thanks again.

Oct 14 '05 #5
It appears that it was my proxy config that was flakey. setup tools
works like a charm. :$

Oct 14 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Thomas Miller | last post by:
Is there ANY way for a windows app to consume a web service by going through a SOCKS proxy? This is a MUST for me because the windows app I am building will be deployed to many corporate clients...
0
by: Xavier - www.andeol.com | last post by:
Hi, My first post on this newsgroup as I have a very strange problem with a WSE client trying to access a .NET WS through a secured HTTP Proxy : it is woking with HTTPS but not with HTTP ?! I am...
0
by: Fred Pacquier | last post by:
Hello, I would be grateful if someone could point me to an existing and working http proxy implementation that satisfies the following requirements : - as small and simple as possible, ideally...
2
by: chris | last post by:
Hi, I am trying to upload files on FTP and used the code below: Dim request As FtpWebRequest request = WebRequest.Create("ftp://ftp...../test.txt") request.Method =...
2
by: Robin Haswell | last post by:
Hey there Soon we will have many squid proxies on many seperate connections for use by our services. I want to make them available to users via a single HTTP proxy - however, I want fine-grained...
2
by: master | last post by:
Hi, I was using the FtpWebRequest class in .NET 2.0 for an FTP transport over SSL. It is working well, however the new requirement for my application is to tranfer files via an HTTP proxy. The...
10
by: =?ISO-8859-1?Q?BJ=F6rn_Lindqvist?= | last post by:
I want to use Python to connect to a SSH account over a HTTP proxy to automate some operations. I thought paramiko would be able to do that, but it can not (it seems). Is there some other Python...
0
by: Dan Lenski | last post by:
Hi all, I've recently written an HTTP proxy server for the Motorola E815 cell phone, based on Suzuki Hisao's "Tiny HTTP Proxy" (http:// www.okisoft.co.jp/esc/python/proxy/). This cell phone...
0
by: Premalatha | last post by:
Hi, I want to implement FTP over HTTP proxy. Is there any free open source code in 'C' for FTP proxy ? or Open source code in 'C' for HTTP <-> FTP Conversion . Also suggest me the useful...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.