Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception must be old-style classes #16

Closed
k1ng88 opened this issue Jun 15, 2017 · 1 comment
Closed

exception must be old-style classes #16

k1ng88 opened this issue Jun 15, 2017 · 1 comment

Comments

@k1ng88
Copy link

k1ng88 commented Jun 15, 2017

I just installed androwarn and try to scan apk fiile, but getting this error.
Anyone know how to solve it?

Traceback (most recent call last):
File "androwarn.py", line 116, in
main(options, arguments)
File "androwarn.py", line 95, in main
a, d, x = AnalyzeAPK(APK_FILE)
File "/root/androwarn/androwarn/analysis/analysis.py", line 48, in AnalyzeAPK
a = APK(filename, raw)
File "/root/androwarn/androguard/core/bytecodes/apk.py", line 163, in init
self.xml[i] = minidom.parseString( AXMLPrinter( self.zip.read( i ) ).getBuff() )
File "/root/androwarn/androguard/core/bytecodes/apk.py", line 871, in init
_type = self.axml.next()
File "/root/androwarn/androguard/core/bytecodes/apk.py", line 622, in next
self.doNext()
File "/root/androwarn/androguard/core/bytecodes/apk.py", line 662, in doNext
raise("ooo")
TypeError: exceptions must be old-style classes or derived from BaseException, not str

@maaaaz
Copy link
Owner

maaaaz commented Dec 30, 2018

Hello @k1ng88,

I don't know but I suspect that this error comes from the fact that the current embedded androguard library is really obsolete.

I might soon use a more recent one.

Best regards

@maaaaz maaaaz closed this as completed Dec 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants