Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'debug': 0.03; 'completeness': 0.05; 'installed.': 0.07; 'used.': 0.07; 'wxpython': 0.07; 'python': 0.08; 'to:name:python- list@python.org': 0.15; '(32': 0.16; '712': 0.16; 'bit)': 0.16; 'currencies': 0.16; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'from:addr:jpmorgan.com': 0.16; 'installs': 0.16; 'is;': 0.16; 'received:155.180': 0.16; 'received:155.180.234': 0.16; 'received:155.180.234.122': 0.16; 'received:159.53': 0.16; 'received:bankone.net': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:se3.svr.bankone.net': 0.16; 'received:svr.bankone.net': 0.16; 'securities,': 0.16; 'thread.': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; '>>>': 0.18; 'tells': 0.21; 'maybe': 0.21; 'smallest': 0.23; 'windows': 0.26; 'code': 0.26; 'import': 0.27; 'tried': 0.27; 'somebody': 0.28; 'received:169': 0.28; 'received:169.254': 0.28; 'separate': 0.28; 'subject:skip:u 10': 0.29; 'example': 0.29; 'worked': 0.29; 'problem': 0.29; 'fairly': 0.30; 'received:155': 0.30; 'received:159': 0.30; 'error': 0.30; 'skip:( 20': 0.31; 'accuracy': 0.32; 'header:Received:8': 0.34; 'someone': 0.34; 'problem.': 0.35; 'to:addr:python-list': 0.35; 'phone:': 0.35; 'be.': 0.35; 'core': 0.36; 'minimal': 0.37; 'but': 0.37; 'machine': 0.37; 'charset:us-ascii': 0.37; 'using': 0.37; 'another': 0.37; "i'll": 0.38; 'some': 0.38; 'getting': 0.38; 'should': 0.38; 'first.': 0.39; 'possible.': 0.39; 'except': 0.39; 'missing': 0.40; 'might': 0.40; 'to:addr:python.org': 0.40; 'your': 0.61; 'subject': 0.61; 'offers': 0.62; 'information,': 0.69; 'legal': 0.72; 'url:email': 0.72; 'bank': 0.75; 'sale': 0.75; 'investment': 0.77; 'purchase': 0.78; 'url:php': 0.81; 'console,': 0.84; 'modes:': 0.84; 'received:169.254.8': 0.84; 'url:jpg': 0.86; 'url:hu': 0.93; 'url:image': 0.95 X-DKIM: OpenDKIM Filter v2.1.3 sz4.jpmchase.com q2KLPQlx016246 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=jpmorgan.com; s=smtpout; t=1332278726; bh=/A3VWqHSQH7nBd7GW8VKTpp3HcD3uyGmtsA2w0BKb8U=; h=From:To:Subject:Date:Message-ID:References: Content-Transfer-Encoding:MIME-Version:Content-Type; b=OkogkkPQbX3+GfUNSaVd5UtA/feQ0pzCzgaCGh6DP111FquwTsRzveSFpEUzt0yw1 kVIm1dbh8uWV1e1vCfgk9hd80voIZ/YIEHhcMIbTbiYNFkuYAU8tkUeP6qtliilm/1 WSEDCzERnlPWrslesNO05OJB35M3PpPMYnqDGuLk= From: "Prasad, Ramit" To: "python-list@python.org" Subject: RE: urllib.urlretrieve never returns??? [SOLVED] - workaround Thread-Topic: urllib.urlretrieve never returns??? [SOLVED] - workaround Thread-Index: AQHNBtoLBPjWeuWbCEqAC9EbZfv1dZZzp6cAgAAJenA= Date: Tue, 20 Mar 2012 21:25:07 +0000 References: <4F649BFC.1080601@shopzeus.com> <4F66E687.2050008@shopzeus.com> <4f67c09b$0$29981$c3e8da3$5496439d@news.astraweb.com> <4F682CDC.5000703@shopzeus.com> <4F68E49C.2060000@shopzeus.com> <4F68EBB4.6060606@shopzeus.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.67.79.38] Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-DLP-FWD: Yes Content-Type: text/plain; charset="us-ascii" 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: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332278736 news.xs4all.nl 6942 [2001:888:2000:d::a6]:58326 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21955 =0D=0A> > Everything works perfectly, in all modes: console, no console, st= arted=0D=0A> > directly and started in separate thread=2E=0D=0A> >=0D=0A> >= So the problem with urllib must be=2E Maybe wxPython installs some except= =0D=0A> > hooks, or who knows? If somebody feels up to it, I can start narr= owing=0D=0A> > down the problem to the smallest possible application=2E But= only if=0D=0A> > someone knows how to debug core code because I don't=2E O= therwise I'll=0D=0A> > just use pyCURL=2E=0D=0A> =0D=0A> Have you tried url= lib2? Have you tried a small program without using wx?=0D=0A> =0D=0A> To be= honest, I doubt the problem is wx or urllib as they are both fairly=0D=0A>= broadly used=2E Try to come up with an example that is as minimal as=0D=0A= > possible=2E=0D=0A> =0D=0A> >>> imgurl =3D=0D=0A> "http://www=2Eshopzeus= =2Ehu/thumbnail=2Ephp?width=3D200&image=3Dpyramid/PP0830=2Ejpg"=0D=0A> >>> = urllib=2Eurlretrieve( imgurl )=0D=0A> ('c:\\[=2E=2E=2E]\\tmpkhixgt=2Ephp', = )=0D=0A> =0D=0A> And I have W= indows 7 64 with Python 2=2E6=2E6 (32 bit) and wx installed=2E=0D=0A>=0D=0A= =0D=0A=0D=0AYour program on ActiveState worked for me which tells me that i= t might be =0D=0Aa network or machine specific problem=2E You are missing a= n import which I =0D=0Amentioned in another post=2E Fixing that should tell= what the error you are =0D=0Agetting is; you would not be getting the Attr= ibuteError without some =0D=0Aother error first=2E=0D=0A=0D=0ARamit=0D=0A= =0D=0A=0D=0ARamit Prasad | JPMorgan Chase Investment Bank | Currencies Tech= nology=0D=0A712 Main Street | Houston, TX 77002=0D=0Awork phone: 713 - 216 = - 5423=0D=0A=0D=0A--=0D=0A =0D=0A=0D=0AThis email is confidential and subje= ct to important disclaimers and=0D=0Aconditions including on offers for the= purchase or sale of=0D=0Asecurities, accuracy and completeness of informat= ion, viruses,=0D=0Aconfidentiality, legal privilege, and legal entity discl= aimers,=0D=0Aavailable at http://www=2Ejpmorgan=2Ecom/pages/disclosures/ema= il=2E