-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
DeadlockWrap, TypeError: String or Integer object expected for key, unicode found #4741
Comments
I've added the full terminal output here http://pastebin.com/2QEd4g5H |
I have the same error. 2016-08-26 07:14:41,699 [ cli] [INFO] PokemonGO Bot v1.0 How to fix this? |
Same here. |
Same error here :( |
Same here |
same here :) |
Quick and dirty workaround: In pokemongo_bot/init.py, remove lines 104 to 112. That will at least allow the bot to run for now (might need to set enable_social to false as well, I haven't tested that). Waiting on a proper solution. |
In other words revert commit: dcda7a1 |
Pretty much @Bilibox |
IMHO nothing mqtt-related should happen if enable_social = false. |
@Gobberwart No, removing lines 104-112 with enable_social = false should work fine. If you want to keep enable_social = true you have to revert social_handler.py back to self.mqttc = MyMQTTClass(bot) |
I meant in general, not at the moment. No reason to have this stuff do anything if enable_social is false. |
Currently, regardless of what enable_social is set to, this bit of code breaks everything. Since its only related to the social stuff, it shouldn't even be running if enable_social is false. But it is, so yeah just remove/comment those lines and it should work for now. |
@solderzzc your thoughts? |
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. |
That's exactly what I'm saying, mate :) Just noting for future reference that the code should be changed NOT to run if enable_social = false. Note that removing the lines was my suggestion, I'm not having trouble understanding it :) |
Please try #4753 |
Issue is gone and bot is running fine. should be closed now |
@Bilibox awesome. I'll send the merge through. |
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)
http://pastebin.com/rGySE5GR
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
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
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:
5e50264
Python Version:
Python 2.7.12
The text was updated successfully, but these errors were encountered: