PokemonGo-Bot: Error after Successful Login

I know it just got updated and you are still working on it. Reporting this error just trying to help and not rush you in any way…

Expected Behavior

The bot should start tasks after login

Actual Behavior

$ python pokecli.py --config configs/anne_config.json 
2016-08-07 04:32:38,704 [       cli] [INFO] PokemonGO Bot v1.0
2016-08-07 04:32:38,707 [       cli] [INFO] Configuration initialized
2016-08-07 04:32:38,708 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more logrmation:
2016-08-07 04:32:38,708 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-07 04:32:38,728 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
2016-08-07 04:32:38,790 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
2016-08-07 04:32:38,791 [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
2016-08-07 04:32:38,791 [PokemonGoBot] [INFO] [location_found] Location found: 38.753178, -9.144213 (38.753178, -9.144213, 0.0)
2016-08-07 04:32:38,791 [PokemonGoBot] [INFO] [position_update] Now at (38.753178, -9.144213, 0)
2016-08-07 04:32:38,791 [PokemonGoBot] [INFO] [login_started] Login procedure started.
2016-08-07 04:32:40,781 [PokemonGoBot] [INFO] [login_successful] Login successful.
2016-08-07 04:32:42,513 [PokemonGoBot] [INFO] 
2016-08-07 04:32:42,514 [PokemonGoBot] [INFO] --- trainer username ---
(...) trainer user information
2016-08-07 04:32:42,516 [PokemonGoBot] [INFO] 
2016-08-07 04:32:42,537 [sentry.errors.serializer] [ERROR] maximum recursion depth exceeded while calling a Python object
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/raven/utils/serializer/manager.py", line 76, in transform
    return repr(value)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 372, in __repr__
    (self._handle & (_sys.maxint*2 + 1)),
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 378, in __getattr__
    func = self.__getitem__(name)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 383, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 378, in __getattr__

_getitem__
    func = self._FuncPtr((name_or_ordinal, self))
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 378, in __getattr__
    func = self.__getitem__(name)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 383, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
RuntimeError: maximum recursion depth exceeded while calling a Python object
Traceback (most recent call last):
  File "pokecli.py", line 493, in <module>
    main()
  File "pokecli.py", line 127, in main
    report_summary(bot)
  File "pokecli.py", line 136, in report_summary
    metrics.capture_stats()
  File "/Users/jasoares/work/projects/PokemonGo-Bot/pokemongo_bot/metrics.py", line 76, in capture_stats
    response_dict = request.call()
  File "/Users/jasoares/work/projects/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 106, in call
    result = self._call()
  File "/Users/jasoares/work/projects/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 63, in _call
    return PGoApiRequest.call(self)
  File "/Users/jasoares/work/projects/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 209, in call
    request.activate_signature(lib_path)
  File "/Users/jasoares/work/projects/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 82, in activate_signature
    ctypes.cdll.LoadLibrary(lib_path)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 443, in LoadLibrary
    return self._dlltype(name)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(encrypt.so, 6): image not found
2016-08-07 04:32:42,550 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
    super(ThreadedHTTPTransport, self).send(data, headers)
  File "/usr/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
    ca_certs=self.ca_certs,
  File "/usr/local/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
    response = self._open(req, data)
  File "/usr/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
    '_open', req)
  File "/usr/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
    return self.do_open(ValidHTTPSConnection, req)
  File "/usr/local/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/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1057, in request
    self._send_request(method, url, body, headers)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1097, in _send_request
    self.endheaders(body)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in endheaders
    self._send_output(message_body)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/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 04:32:42,554 [sentry.errors.uncaught] [ERROR] [u'OSError: dlopen(encrypt.so, 6): image not found', u'  File "pokecli.py", line 493, in <module>', 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 209, in call', u'  File "pgoapi/rpc_api.py", line 82, in activate_signature', u'  File "ctypes/__init__.py", line 443, in LoadLibrary', u'  File "ctypes/__init__.py", line 365, in __init__']

Steps to Reproduce

`python pokecli.py --config configs/config.json``

Other Information

OS: Mac OS X Git Commit: c21fad0e476a2ab77e8ec6eb898c03b1c3dbf3dd Python Version: Python 2.7.11

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 6
  • Comments: 48 (3 by maintainers)

Most upvoted comments

Where can I get the encrypt.so file for windows?

I downloaded encrypt.so and put it into my root folder but same issue is still pulling up…

I got it from @segflow that posted in the slack channel.

Maybe this link will work: https://slack-files.com/T1U6G9ZEW-F1YV50RGQ-cc979942b7

Finally got it working. Here are the steps I followed on Debian 8:

  1. Create directory to create encrypt.so manually (mkdir ~/encrypt-so)
  2. cd encrypt-so
  3. wget http://pgoapi.com/pgoencrypt.tar.gz
  4. tar -xvzf pgoencrypt.tar.gz
  5. cd pgoencrypt/src
  6. make
  7. cp libencrypt.so ~/PokemonGo-Bot/encrypt.so

Then I ran the bot and it worked fine.

I fixed the issue by adding the encrypt.so file to the PokemonGo-Bot directory

EDIT: I’m running on OS X, which might make a difference for some of you.

I found the encrypt.so file for windows: (I have windows 10) https://files.slack.com/files-pri/T1U6G9ZEW-F1Z0H2PFY/download/encrypt.so.dll

Place it in the root folder then rename the file to “encrypt.so” Worked for me, hope this helps 😃

I’m getting this error on Debian 8, after placing encrypt.so in my root PokemonGo-Bot directory. Any ideas?

got different error in windows 10, already install requirement and everything

EDIT: after searching in slack, got encrypt.so for windows, and its working now.

where can i get the encrypt.so file?