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

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 3: ordinal not in range(128) #2743

Closed
otanriverdi opened this issue Aug 7, 2016 · 15 comments

Comments

@otanriverdi
Copy link

otanriverdi commented Aug 7, 2016

Hey guys,

Does anyone have a solution to this ?

Expected Behavior

bot to work

Actual Behavior

Traceback (most recent call last):
File "pokecli.py", line 493, in
main()
File "pokecli.py", line 129, in main
raise e
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 3: ordinal not in range(128)

Steps to Reproduce

python pokecli.py

Other Information

OS:
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)
Python Version: (run 'python -V' and paste it here)

@Jojo1910
Copy link

Jojo1910 commented Aug 7, 2016

Same here

OS: linux debian
Git Commit: e93431c
Python Version: 2.7

@elhanarinc
Copy link

Same here

@Corecrafts
Copy link

aye, same

@Philipp59
Copy link

duplicate of #2718
maybe fixed with #2720

@Corecrafts
Copy link

merged, same issue @Philipp59

@jelix99
Copy link

jelix99 commented Aug 7, 2016

did a pull on the merged code, but still got the same (or kinda the same) error:

UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-07 05:46:32,325 [sentry.errors.uncaught] [ERROR] [u'OSError: dlopen(encrypt.so, 6): image not found', u' File "pokecli.py", line 493, in ', u' File "pokecli.py", line 127, in main', u' File "pokecli.py", line 136, in report_summary', u' File "pokemongo_bot/metrics.py", line 76, in capture_stats', u' File "pokemongo_bot/api_wrapper.py", line 106, in call', u' File "pokemongo_bot/api_wrapper.py", line 63, in _call', u' File "pgoapi/pgoapi.py", line 210, in call', u' File "pgoapi/rpc_api.py", line 85, in activate_signature', u' File "ctypes/init.py", line 443, in LoadLibrary', u' File "ctypes/init.py", line 365, in init']

Any help ?

@bramvera
Copy link

bramvera commented Aug 7, 2016

confirm same error

@Sijmenjeromkok
Copy link

  • Same error

@cliffalbert
Copy link

The decryption library is not present in your install. It has to be hand-installed. It's not part of the git repository.

@jelix99
Copy link

jelix99 commented Aug 7, 2016

Thanks for the info, Any link on where i can get the decryption library?

@daniel100097
Copy link

wget http://pgoapi.com/pgoencrypt.tar.gz && tar -xf pgoencrypt.tar.gz && cd pgoencrypt/src/ && make && mv libencrypt.so /lib/encrypt.so

@bramvera
Copy link

bramvera commented Aug 7, 2016

thanks @cliffalbert forgot to move from src to pogobot folder

@bramvera
Copy link

bramvera commented Aug 7, 2016

@jelix99 #2642

@inzaghi89
Copy link

@brumie tried this, downloaded encrypt.so, put it into main Pokemongo directory, still same issue...

File "/home/inzaghi89/PokemonGo-Bot/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib64/python2.7/httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "/usr/lib64/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/lib64/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/lib64/python2.7/httplib.py", line 895, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-07 13:30:55,561 [sentry.errors.uncaught] [ERROR] [u'OSError: encrypt.so: cannot open shared object file: No such file or directory', u' File "pokecli.py", line 501, in ', u' File "pokecli.py", line 130, in main', u' File "pokecli.py", line 139, in report_summary', u' File "pokemongo_bot/metrics.py", line 76, in capture_stats', u' File "pokemongo_bot/api_wrapper.py", line 106, in call', u' File "pokemongo_bot/api_wrapper.py", line 63, in _call', u' File "pgoapi/pgoapi.py", line 210, in call', u' File "pgoapi/rpc_api.py", line 85, in activate_signature', u' File "ctypes/init.py", line 435, in LoadLibrary', u' File "ctypes/init.py", line 357, in init']

@inzaghi89
Copy link

#2769 (comment) this solve my problem.

@k4n30
Copy link
Contributor

k4n30 commented Aug 7, 2016

#2768

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