clanner / cocdp

Clash of Clans Documentation Project
216 stars 64 forks source link

cocprefs.py getting error ... #24

Closed avisingh736 closed 7 years ago

avisingh736 commented 7 years ago

While running this code getting error at #cocprefs.py line 126 at print function. Can you please suggest me which python version prefer to this code

clanner commented 7 years ago

cocprefs.py is for python2.7

avisingh736 commented 7 years ago

Thank you for reply... CMD at Administrator C:\Users\AVISINGH\Desktop\cocdp-master>python cocprefs.py "C:\Users\AVISINGH\Desktop\cocdp-master" MyAndroidID storage.xml Traceback (most recent call last): File "cocprefs.py", line 144, in handle_xmlfile(fn, args) File "cocprefs.py", line 129, _in handlexmlfile with open(fn) as fh: IOError: [Errno 13] Permission denied: 'C:\Users\AVISINGH\Desktop\cocdp-master'

is that any error or need some modifications on code ? becouse storage.xml file having full control where it placed(for user: AVISINGH,Administrator and System)

clanner commented 7 years ago

the command should be:

python cocprefs.py --from <androidid>  "c:\users\.....\storage.xml"
clanner commented 7 years ago

the android id is the id from the file shared_prefs/openudid_prefs.xml

avisingh736 commented 7 years ago

Thanks a lot it works for me.