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

RuntimeError: maximum recursion depth exceeded while calling a Python object #2655

Closed
pranavperfect opened this issue Aug 7, 2016 · 14 comments

Comments

@pranavperfect
Copy link

Expected Behavior

Actual Behavior

Steps to Reproduce

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)

@AlexandreCassagne
Copy link

Same problem.

@LHagood
Copy link

LHagood commented Aug 7, 2016

In your config file, set "health_record": false. This solved the recursion problem for me

@dezayner
Copy link

dezayner commented Aug 7, 2016

Other Information

OS: Windows 7
Git Commit: c58bed9
Python Version: Python 2.7.12

@dezayner
Copy link

dezayner commented Aug 7, 2016

I got this error when set "health_record" to true.

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 "D:\gamezone\pokebots\PokemonGo-Bot\pokemongo_bot\metrics.py", line 76, in capture_stats response_dict = request.call() File "D:\gamezone\pokebots\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 106, in call result = self._call() File "D:\gamezone\pokebots\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 63, in _call return PGoApiRequest.call(self) File "d:\gamezone\pokebots\pokemongo-bot\src\pgoapi\pgoapi\pgoapi.py", line 209, in call request.activate_signature(lib_path) File "d:\gamezone\pokebots\pokemongo-bot\src\pgoapi\pgoapi\rpc_api.py", line 82, in activate_signature ctypes.cdll.LoadLibrary(lib_path) File "C:\Python27\lib\ctypes\__init__.py", line 440, in LoadLibrary return self._dlltype(name) File "C:\Python27\lib\ctypes\__init__.py", line 362, in __init__ self._handle = _dlopen(self._name, mode) WindowsError: [Error 126] The specified module could not be found

@AlexandreCassagne
Copy link

Setting health_record to false, I get the following error:

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/Alexandre/Pokemon/PokemonGo-Bot/pokemongo_bot/metrics.py", line 76, in capture_stats response_dict = request.call() File "/Users/Alexandre/Pokemon/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 106, in call result = self._call() File "/Users/Alexandre/Pokemon/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 63, in _call return PGoApiRequest.call(self) File "/Users/Alexandre/Pokemon/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 209, in call request.activate_signature(lib_path) File "/Users/Alexandre/Pokemon/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.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 440, in LoadLibrary return self._dlltype(name) File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 362, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen(encrypt.so, 6): image not found

@AlexandreCassagne
Copy link

@dezayner are you sure you don't mean false ?

@LHagood
Copy link

LHagood commented Aug 7, 2016

Different error. You need to download encrypt.so (there are links in one of the other issue threads) and place it in the PokemonGo-Bot directory. Be sure you get the correct version of the file for your OS.

@agastimhatre
Copy link

@AlexandreCassagne @dezayner i got following after setting health_record to false

Traceback (most recent call last):
File "pokecli.py", line 493, in
main()
File "pokecli.py", line 127, in main
report_summary(bot)
File "pokecli.py", line 136, in report_summary
metrics.capture_stats()
File "C:\Users\agast\PokemonGo-Bot\pokemongo_bot\metrics.py", line 76, in capture_stats
response_dict = request.call()
File "C:\Users\agast\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 106, in call
result = self.call()
File "C:\Users\agast\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 63, in call
return PGoApiRequest.call(self)
File "c:\users\agast\pokemongo-bot\src\pgoapi\pgoapi\pgoapi.py", line 209, in call
request.activate_signature(lib_path)
File "c:\users\agast\pokemongo-bot\src\pgoapi\pgoapi\rpc_api.py", line 82, in activate_signature
ctypes.cdll.LoadLibrary(lib_path)
File "C:\Python27\lib\ctypes__init
.py", line 440, in LoadLibrary
return self.dlltype(name)
File "C:\Python27\lib\ctypes__init
_.py", line 362, in init
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found

@AlexandreCassagne
Copy link

@LHagood Yep: working perfectly. Thanks !

@pranavperfect
Copy link
Author

@LHagood PokemonGo-Bot meaning root directory or pokemongo_bot directory?

@dezayner
Copy link

dezayner commented Aug 7, 2016

@LHagood do you have any recommended site to get encrypt.dll for Windows 7 ? Thanks

@pranavperfect
Copy link
Author

Compiled the files. Renamed libencrypt.so to encrypt.so

Kept it in home directory of bot. Got the following error.

Traceback (most recent call last):
File "pokecli.py", line 493, in
main()
File "pokecli.py", line 127, in main
report_summary(bot)
File "pokecli.py", line 136, in report_summary
metrics.capture_stats()
File "/mnt/c/Users/prana/Desktop/Bot/Updated/pokemongo_bot/metrics.py", line 76, in capture_stats
response_dict = request.call()
File "/mnt/c/Users/prana/Desktop/Bot/Updated/pokemongo_bot/api_wrapper.py", line 106, in call
result = self._call()
File "/mnt/c/Users/prana/Desktop/Bot/Updated/pokemongo_bot/api_wrapper.py", line 63, in _call
return PGoApiRequest.call(self)
File "/mnt/c/Users/prana/Desktop/Bot/Updated/src/pgoapi/pgoapi/pgoapi.py", line 209, in call
request.activate_signature(lib_path)
File "/mnt/c/Users/prana/Desktop/Bot/Updated/src/pgoapi/pgoapi/rpc_api.py", line 82, in activate_signature
ctypes.cdll.LoadLibrary(lib_path)
File "/usr/lib/python2.7/ctypes/init.py", line 443, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.7/ctypes/init.py", line 365, in init
self._handle = _dlopen(self._name, mode)
OSError: encrypt.so: cannot open shared object file: No such file or directory

@imvikash00
Copy link

@pranavperfect check it out
#2643

@k4n30
Copy link
Contributor

k4n30 commented Aug 11, 2016

@pranavperfect are you still experiencing this issue or can it be closed?

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

8 participants