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 20:09:58 -0600 Lines: 19 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de Paavs1ANJp6wcWQAbC18nwbRYezN/JzUJFwIEYHp+TEQ== 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; 'subject:Python': 0.05; 'subject:help': 0.07; 'cc:addr:python-list': 0.09; 'subject:related': 0.09; 'subject:skip:a 10': 0.09; 'bug': 0.10; 'python': 0.10; 'exception': 0.13; 'stack': 0.13; "hasn't": 0.15; 'instead.': 0.15; 'bug,': 0.16; 'file?': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'isnt': 0.16; 'manifest': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'shooting': 0.16; 'wrote:': 0.16; 'string': 0.17; 'integer': 0.18; 'pointed': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'occurs': 0.22; 'sean': 0.22; 'trace': 0.22; 'cc:no real name:2**0': 0.22; 'am,': 0.23; '(or': 0.23; 'passing': 0.23; 'tried': 0.24; 'xml': 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; 'this.': 0.28; 'there.': 0.30; 'code': 0.30; 'probably': 0.31; 'changed': 0.33; 'doubt': 0.33; 'message-id:@gmail.com': 0.34; 'case,': 0.34; 'could': 0.35; 'something': 0.35; 'reply.': 0.35; 'but': 0.36; 'project': 0.36; 'possible': 0.36; 'subject:: ': 0.37; 'there,': 0.37; 'received:org': 0.37; 'thank': 0.38; 'google': 0.39; 'data': 0.39; 'received:192': 0.39; 'where': 0.40; 'him': 0.60; 'your': 0.60; 'son': 0.61; 'back': 0.62; 'yes': 0.62; 'more': 0.63; 'hear': 0.64; 'due': 0.65; 'account': 0.66; 'subject:. ': 0.67; 'sounds': 0.76; 'dark': 0.84; 'itself?': 0.84; 'points,': 0.84; 'to:none': 0.91; 'from.': 0.93 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: 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: <878f4713-0970-454e-5320-950dd7a676f0@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> Xref: csiph.com comp.lang.python:109183 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). Debuggers and Python are not my strong points, but if you could go back through the stack trace and find out what's calling it, you might be able to find out where this bad data is coming from. I doubt it's an error in the apk. More likely Google has changed something inside of apks and the python code hasn't been updated to account for this. Could be something in the XML manifest inside the apk. Just shooting in the dark there. Not so helpful, but that's all I know really.