urllib.urlretrieve never returns???
joncle at googlemail.com
Tue Mar 20 00:04:54 CET 2012
On Monday, 19 March 2012 19:32:03 UTC, Laszlo Nagy wrote:
> The pythonw.exe may not have the rights to access network resources.
> >> Have you set a default timeout for sockets?
> >> import socket
> >> socket.setdefaulttimeout(10) # 10 seconds
> I have added pythonw.exe to allowed exceptions. Disabled firewall
> completely. Set socket timeout to 10 seconds. Still nothing.
> urllib.urlretrieve does not return from call....
> any other ideas?
Maybe try using the reporthook option for urlretrieve, just to see if that does anything... If it constantly calls the hook or never calls it, that's one thing.
Alternately, tcpdump/wireshark whatever, to see what the heck is going on with traffic - if any.
More information about the Python-list