google / play-work

Apache License 2.0
84 stars 42 forks source link

Script fails with error: "TypeError: character mapping must return integer, None or unicode" #17

Open MSohm opened 8 years ago

MSohm commented 8 years ago

Environment: Windows 10 OpenSSL 1.0.2h JDK 1.8.0_101 Python: 2.7.4 & 3.5.2 Android SDK Build Tools 24.0.1

APK used for testing was generated using the BasicMultiTouch sample found here: https://github.com/googlesamples/android-BasicMultitouch

Here is the full output:

C:\Users\msohm\Downloads>python externallyhosted.py --apk=BasicMultitouchSample-release.apk --externallyHostedUrl="removed" Traceback (most recent call last): File "externallyhosted.py", line 411, in main() File "externallyhosted.py", line 406, in main CreateJson(args.apk_file_name, args.externally_hosted_url).parse(), File "externallyhosted.py", line 380, in parse apk_properties.update(parser.parse()) File "externallyhosted.py", line 312, in parse jar_zip.extractall(path=temp_dir, members=manifest_files) File "C:\Python27\lib\zipfile.py", line 1036, in extractall self.extract(zipinfo, path, pwd) File "C:\Python27\lib\zipfile.py", line 1024, in extract return self._extract_member(member, path, pwd) File "C:\Python27\lib\zipfile.py", line 1057, in _extract_member arcname = arcname.translate(table) TypeError: character mapping must return integer, None or unicode