Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Michael Torrie Newsgroups: comp.lang.python Subject: Re: Strange Python related errors for androwarn.py. Please help! Date: Fri, 27 May 2016 21:02:55 -0600 Lines: 17 Message-ID: References: <64b92fce-be57-c7ec-3be9-8a5272035b80@mrabarnett.plus.com> <53f6d0eb-b5bd-5c47-f4df-c1645dc695c8@gmail.com> <8cc41e51-2fd2-a4aa-7ab4-9a36fd231c90@gmail.com> <878f4713-0970-454e-5320-950dd7a676f0@gmail.com> <2d5e0620-5cb6-2b7f-cb3b-7b8c87fb8f1e@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de KMSN4xZmviVIhh2MExP9+QvqTnCKo/Qst9kQXuO+2BMQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'subject:help': 0.07; 'subject:related': 0.09; 'subject:skip:a 10': 0.09; 'bug': 0.10; 'exception': 0.13; 'instead.': 0.15; 'bug,': 0.16; 'expects': 0.16; 'file?': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'integer.': 0.16; 'isnt': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'string': 0.17; 'integer': 0.18; 'pointed': 0.18; 'converted': 0.22; 'occurs': 0.22; 'sean': 0.22; 'am,': 0.23; '(or': 0.23; 'passing': 0.23; 'tried': 0.24; 'header:In-Reply- To:1': 0.24; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'figure': 0.27; 'error': 0.27; 'function': 0.28; 'guess': 0.31; 'probably': 0.31; 'getting': 0.33; 'michael': 0.33; 'instead,': 0.33; 'message-id:@gmail.com': 0.34; 'case,': 0.34; 'text': 0.35; 'something': 0.35; 'reply.': 0.35; 'but': 0.36; 'project': 0.36; 'possible': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'there,': 0.37; 'received:org': 0.37; 'thank': 0.38; 'mean': 0.38; 'data': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'him': 0.60; 'your': 0.60; 'son': 0.61; 'back': 0.62; 'yes': 0.62; 'charset:windows-1252': 0.62; 'hear': 0.64; 'due': 0.65; 'subject:. ': 0.67; 'sounds': 0.76; 'itself?': 0.84 X-Virus-Scanned: amavisd-new at torriefamily.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <878f4713-0970-454e-5320-950dd7a676f0@gmail.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <2d5e0620-5cb6-2b7f-cb3b-7b8c87fb8f1e@gmail.com> X-Mailman-Original-References: <64b92fce-be57-c7ec-3be9-8a5272035b80@mrabarnett.plus.com> <53f6d0eb-b5bd-5c47-f4df-c1645dc695c8@gmail.com> <8cc41e51-2fd2-a4aa-7ab4-9a36fd231c90@gmail.com> <878f4713-0970-454e-5320-950dd7a676f0@gmail.com> Xref: csiph.com comp.lang.python:109186 On 05/27/2016 08:09 PM, Michael Torrie wrote: > On 05/27/2016 08:41 AM, Sean Son wrote: >> Thank you for your reply. So the error isnt due to a bug in function >> itself? It is due to a possible error in the Android APK file? If that >> is the case, it would take a while to figure this out. I tried contacted >> the author of the project but I have yet to hear back from him . > > Yes it sounds like a bug, but the bug is probably not in the function > that you pointed to. The exception occurs there, yes, but it occurs > because the function is expecting an integer to be passed to it, but is > receiving a string instead. In other words, something is passing bad > data (or data the function doesn't know how to interpret). I guess I don't mean integer. I mean it expects a string that can be converted to an integer. But it's getting some other text instead, which it doesn't know how to handle.