Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(at': 0.03; 'completeness': 0.05; 'attribute': 0.07; 'threads,': 0.07; 'overridden': 0.09; 'pil.': 0.09; 'throw': 0.09; 'exception': 0.12; 'library': 0.13; 'to:name:python-list@python.org': 0.15; '404': 0.16; '712': 0.16; 'currencies': 0.16; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'example).': 0.16; 'from:addr:jpmorgan.com': 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:169.70': 0.16; 'received:169.70.184': 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; 'stdout': 0.16; 'threading,': 0.16; 'typo': 0.16; 'unhandled': 0.16; 'up:': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'interesting.': 0.18; 'trace': 0.18; 'help.': 0.19; 'previously': 0.19; 'possibly': 0.19; '(most': 0.21; 'maybe': 0.21; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'stack': 0.24; 'times,': 0.24; 'traceback': 0.24; 'function': 0.27; 'import': 0.27; 'tried': 0.27; 'received:169': 0.28; 'received:169.254': 0.28; 'effect': 0.28; 'invalid': 0.28; 'subject:skip:u 10': 0.29; 'print': 0.29; 'lines': 0.30; '(maybe': 0.30; 'received:155': 0.30; 'received:159': 0.30; 'threads': 0.30; "didn't": 0.30; 'error': 0.30; 'accuracy': 0.32; 'thread': 0.32; 'does': 0.32; 'familiar': 0.32; 'object': 0.33; 'file': 0.34; 'calling': 0.34; 'header:Received:8': 0.34; 'last):': 0.34; 'probably': 0.35; 'to:addr:python-list': 0.35; 'however,': 0.35; 'phone:': 0.35; 'something': 0.35; 'install': 0.35; 'before.': 0.37; 'http': 0.37; 'suddenly': 0.37; 'but': 0.37; 'charset:us-ascii': 0.37; 'using': 0.37; "i'll": 0.38; 'think': 0.38; 'getting': 0.38; 'should': 0.38; 'same.': 0.39; 'missing': 0.40; 'being': 0.40; 'to:addr:python.org': 0.40; 'type': 0.61; 'more': 0.61; 'subject': 0.61; 'offers': 0.62; 'here': 0.64; 'information,': 0.69; 'today': 0.70; 'legal': 0.72; 'url:email': 0.72; 'bank': 0.75; 'sale': 0.75; 'investment': 0.77; 'click': 0.78; 'purchase': 0.78; 'received:169.254.8': 0.84; 'absolutely': 0.98 X-DKIM: OpenDKIM Filter v2.1.3 sf2.jpmchase.com q2KKq5CQ007585 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=jpmorgan.com; s=smtpout; t=1332276725; bh=U7TBojOM5ZYy7EcTIsIhzP6TUk6GuBXaechobFcnkhI=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=YAf7TeBECp6gDv1BQB2aHSQrbYy7G4ZL/Xcq/2B7ei6RttBkd4m9mdqOJwb4bLYTR 73Sw5DTiIaBqGv93oZ2Q36sG6/TdwPkxMccOk6RPk56/dhzHk2cz4W4DkA+jWdmGjQ 7W2fshVTKrjuCv/iZYL3TOk3lFreBGoDXPKLXtrw= From: "Prasad, Ramit" To: "python-list@python.org" Subject: RE: urllib.urlretrieve never returns??? Thread-Topic: urllib.urlretrieve never returns??? Thread-Index: AQHNBtXOjTMrLvbWA0uhAh24rmbgNZZzoKaQ Date: Tue, 20 Mar 2012 20:52:00 +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> In-Reply-To: <4F68E49C.2060000@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: 77 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332277337 news.xs4all.nl 6911 [2001:888:2000:d::a6]:49071 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21952 > Today I got a different error message printed on console (program=0D=0A> = started with python=2Eexe)=0D=0A> =0D=0A> =0D=0A> =0D=0A> Unhandled excepti= on in thread started by FrameLocEdit=2EGetThumbnail of= Object of type 'wxPanel *' = at 0x4f85300>=0D=0A> >>Unhandled exception in thread started by FrameLocEdit=2EGetThumbnail of Object of type 'wxPanel *' at 0x4f85300>=0D=0A> >>Unhandled = exception in thread started by FrameLocEdit=2EGetThumb= nail of Object of type 'wxPa= nel *' at 0x4f85300>=0D=0A> >>Unhandled exception in thread started by=0D= =0A> Traceback (most recent call last):=0D=0A> =0D=0A> Traceback (most rece= nt call last):=0D=0A> =0D=0A> Traceback (most recent call last):=0D=0A> of =0D=0A> >> File "C:= \Python\Projects\Warehouserclient_v3\locedit=2Epy", line 917,=0D=0A> in Get= Thumbnail=0D=0A> File "C:\Python\Projects\Warehouserclient_v3\locedit=2E= py", line 917,=0D=0A> in GetThumbnail=0D=0A> File "C:\Python\Projects\Wa= rehouserclient_v3\locedit=2Epy", line 917,=0D=0A> in GetThumbnail=0D=0A> = =0D=0A> sys=2Eexcepthook is missing=0D=0A> Traceback (most recent call last= ):=0D=0A> =0D=0A> I have never seen a traceback like this before=2E I didn'= t install any=0D=0A> excepthook myself=2E=0D=0A> =0D=0A> Program is using w= xPython, socket, threads, threading, PIL=2E=0D=0A> =0D=0A> Here is somethin= g even more strange=2E If I click on the button three=0D=0A> times, then ab= solutely nothing gets printed on stdout=2E However, if I=0D=0A> close the p= rogram with file/exit (actually, calling=0D=0A> wx=2EPySimpleApp=2EExitMain= Loop) then suddenly three stack traces are=0D=0A> printed on stdout, all li= nes mixed up:=0D=0A> =0D=0A=0D=0AMaybe in self=2ELog you should add a sys= =2Estdout=2Eflush and =0D=0Asys=2Estderr=2Eflush()=2E I am not very famili= ar with stdin/out but=0D=0Amaybe it will help=2E=0D=0A=0D=0A> Unhandled exc= eption in thread started by FrameLocEdit=2EGetThumbnai= l of Object of type 'wxPanel= *' at 0x4fb530=0D=0A> 0>=0D=0A> >>Unhandled exception in thread started b= y Unhandled exception in=0D=0A> thread started by 0x4fb5300>=0D=0A> >>Unhandled exception in th= read started by Unhandled exception in=0D=0A> thread started by 0x4fb5300>=0D=0A> >>Traceback (= most recent call last): FrameLocEdit=2EGetThumbnail of = Object of type 'wxPanel *' a= t 0x4fb5300>=0D=0A> >>Traceback (most recent call last): FrameLocEdit=2EGetThumbnail of Object of type 'wxPanel *' at 0x4fb5300>=0D=0A> >>Traceback (most = recent call last): File=0D=0A> "C:\Python\Projects\Warehouserclient_v3\loc= edit=2Epy", line 917, in=0D=0A> GetThumbnail=0D=0A> =0D=0A> =0D=0A> Traceba= ck (most recent call last):=0D=0A> =0D=0A> File "C:\Python\Projects\Ware= houserclient_v3\locedit=2Epy", line 917,=0D=0A> in GetThumbnail=0D=0A> Trac= eback (most recent call last):=0D=0A> File "C:\Python\Projects\Warehouse= rclient_v3\locedit=2Epy", line 917,=0D=0A> in GetThumbnail=0D=0A> Fi= le "C:\Python\Projects\Warehouserclient_v3\locedit=2Epy", line=0D=0A> 917, = in GetThumbnail=0D=0A> File "C:\Python\Projects\Warehouserclient_v3\= locedit=2Epy", line=0D=0A> 917, in GetThumbnail=0D=0A> self=2ELog(trac= eback=2Eformat_exc())=0D=0A> self=2ELog(traceback=2Eformat_exc())=0D= =0A> self=2ELog(traceback=2Eformat_exc())=0D=0A> AttributeErrorself=2E= Log(traceback=2Eformat_exc())=0D=0A> AttributeErrorself=2ELog(traceback=2Ef= ormat_exc())=0D=0A> AttributeError: AttributeError: AttributeError:=0D=0A> = C:\Python\Projects\Warehouserclient_v3>=0D=0A> =0D=0A> =0D=0A> And the last= attributerror doesn't tell what attribute is missing=2E=0D=0A> Probably I'= ll have to use a different library (pycurl, for example)=2E But=0D=0A> the = error itself is getting more interesting=2E=0D=0A=0D=0AThis makes me think = self does not have a =2ELog() or the traceback=0D=0Aimport is being overrid= den by something else that does not have=0D=0A=2Eformat_exc()=2E Or possibl= y this is in a function that does not have a =0D=0Aself (maybe a typo in th= e function def?)=2E=0D=0A=0D=0A> =0D=0A> Also tried to use an invalid file = (that should return with HTTP 404 not=0D=0A> found) but the effect is exact= ly the same=2E Nothing is printed on stdout=0D=0A> until I try to close the= program (stop wxPython's mainloop)=2E Then all=0D=0A> previously threads t= hrow an AttributeError and all of them print a stack=0D=0A> trace (at the s= ame time, lines mixed up)=2E=0D=0A> =0D=0A> I'll be experimenting with pyCu= rl now=2E=0D=0A=0D=0A=0D=0ARamit=0D=0A=0D=0A=0D=0ARamit Prasad | JPMorgan C= hase Investment Bank | Currencies Technology=0D=0A712 Main Street | Houston= , TX 77002=0D=0Awork phone: 713 - 216 - 5423=0D=0A=0D=0A--=0D=0A=0D=0AThis = email is confidential and subject to important disclaimers and=0D=0Aconditi= ons including on offers for the purchase or sale of=0D=0Asecurities, accura= cy and completeness of information, viruses,=0D=0Aconfidentiality, legal pr= ivilege, and legal entity disclaimers,=0D=0Aavailable at http://www=2Ejpmor= gan=2Ecom/pages/disclosures/email=2E