maaaaz / androwarn

Yet another static code analyzer for malicious Android applications
GNU Lesser General Public License v3.0
473 stars 159 forks source link

exception must be old-style classes #16

Closed k1ng88 closed 5 years ago

k1ng88 commented 7 years ago

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 commented 5 years ago

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