PokemonGo-Bot: DeadlockWrap, TypeError: String or Integer object expected for key, unicode found
Expected Behavior
Bot running.
Actual Behavior
Error message, see traceback below
Your FULL config.json (remove your username, password, gmapkey and any other private info)
Output when issue occurred
2016-08-26 05:51:22,707 [ cli] [INFO] PokemonGO Bot v1.0 2016-08-26 05:51:22,707 [ cli] [INFO] commit: not found 2016-08-26 05:51:22,723 [ cli] [INFO] No config argument specified, checki ng for /configs/config.json 2016-08-26 05:51:22,726 [ cli] [INFO] Configuration initialized Traceback (most recent call last): File “pokecli.py”, line 705, in <module> main() File “pokecli.py”, line 103, in main bot = PokemonGoBot(config) File “D:\gamezone\pokebots\PokemonGo-Bot\pokemongo_bot__init__.py”, line 106, in init if saved_info.has_key(‘client_id’): File “C:\Python27\lib\shelve.py”, line 107, in has_key return key in self.dict File “C:\Python27\lib_abcoll.py”, line 388, in contains self[key] File “C:\Python27\lib\bsddb__init__.py”, line 270, in getitem return _DeadlockWrap(lambda: self.db[key]) # self.db[key] File “C:\Python27\lib\bsddb\dbutils.py”, line 68, in DeadlockWrap return function(__args, *kwargs) File "C:\Python27\lib\bsddb__init.py", line 270, in <lambda> return _DeadlockWrap(lambda: self.db[key]) # self.db[key] TypeError: String or Integer object expected for key, unicode found
Steps to Reproduce
Run the bot
Other Information
OS: Win7 64bit Branch: dev Git Commit: 5e50264e7644b007dff7e0e057375cc433c36805 Python Version: Python 2.7.12
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 19 (10 by maintainers)
Since init.py runs whether or not enable_social is true or false that’s why it causes the error. With it set to false removing the lines from init.py fixes the problem. With it set to true it then calls upon social_handler.py which then throws an error because of the added code. just needs to be fixed up and should be good. hopefully that explains it?
Issue is gone and bot is running fine. should be closed now