Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.034 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'socket': 0.04; 'any.': 0.09; 'firewall': 0.09; 'to:addr:comp.lang.python': 0.09; 'exceptions.': 0.16; 'ideas?': 0.16; 'timeout': 0.16; 'utc,': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'cc:no real name:2**0': 0.21; 'maybe': 0.21; 'header:In-Reply-To:1': 0.22; 'seconds': 0.26; 'cc:2**0': 0.26; 'import': 0.27; 'subject:skip:u 10': 0.29; 'cc:addr:python.org': 0.29; 'disabled': 0.30; 'resources.': 0.30; 'from:addr:googlemail.com': 0.31; 'does': 0.32; 'header:User-Agent:1': 0.33; 'received:google.com': 0.37; 'using': 0.37; 'received:209.85': 0.38; 'monday,': 0.38; 'option': 0.39; 'received:209': 0.39; 'march': 0.61; 'traffic': 0.68; 'rights': 0.68; 'constantly': 0.71; 'hook': 0.84; 'jon': 0.84; 'nagy': 0.84; 'received:209.85.216.184': 0.84 Newsgroups: comp.lang.python Date: Mon, 19 Mar 2012 16:04:54 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=86.156.91.130; posting-account=HLD_OAoAAAD-0RilNRZUjdKEwXt97Q9q References: <4F649BFC.1080601@shopzeus.com> <4F66E687.2050008@shopzeus.com> User-Agent: G2/1.0 X-Google-Web-Client: true MIME-Version: 1.0 Subject: Re: urllib.urlretrieve never returns??? From: Jon Clements To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332198302 news.xs4all.nl 6980 [2001:888:2000:d::a6]:48228 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21907 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. hth Jon