PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

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

Open otrv opened this issue 10 years ago • 16 comments

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)

otrv avatar Aug 07 '16 10:08 otrv

Same here

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

Jojo1910 avatar Aug 07 '16 10:08 Jojo1910

Same here

elhanarinc avatar Aug 07 '16 10:08 elhanarinc

aye, same

Corecrafts avatar Aug 07 '16 10:08 Corecrafts

duplicate of #2718 maybe fixed with #2720

Philipp59 avatar Aug 07 '16 10:08 Philipp59

merged, same issue @Philipp59

Corecrafts avatar Aug 07 '16 10:08 Corecrafts

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 ?

jelix99 avatar Aug 07 '16 10:08 jelix99

confirm same error

bramvera avatar Aug 07 '16 10:08 bramvera

  • Same error

Sijmenjeromkok avatar Aug 07 '16 10:08 Sijmenjeromkok

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

cliffalbert avatar Aug 07 '16 10:08 cliffalbert

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

jelix99 avatar Aug 07 '16 10:08 jelix99

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

daniel100097 avatar Aug 07 '16 11:08 daniel100097

thanks @cliffalbert forgot to move from src to pogobot folder

bramvera avatar Aug 07 '16 11:08 bramvera

@jelix99 https://github.com/PokemonGoF/PokemonGo-Bot/issues/2642

bramvera avatar Aug 07 '16 11:08 bramvera

@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 avatar Aug 07 '16 11:08 inzaghi89

https://github.com/PokemonGoF/PokemonGo-Bot/issues/2769#issuecomment-238077548 this solve my problem.

inzaghi89 avatar Aug 07 '16 11:08 inzaghi89

#2768

k4n30 avatar Aug 07 '16 12:08 k4n30