-
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
UnboundLocalError: local variable 'bot' referenced before assignment #2598
Comments
Same problem here.
Both runs goes through the same OS. One by root (cli), other by www-data. OS : Debian 8 |
Same error on MAC OS X |
anyone know how to fix this? |
Having the same issue. Turned out I had an error in my config.json, fixed the error and the bot started working again :) |
I'm getting this error now. What was the error in your config.json? Mine looks OK to me, but I am clearly missing something, and not sure what to look for. I ran my config.json through http://jsonlint.com/ and it says it's valid, but I still get the error. |
I had a missing comma on the 'any' line, example:
|
Here's what I have. http://jsonlint.com/ says it's fine, but obviously not:
|
Running dev commit 90e5628 with Python 2.7.10 on Ubuntu Linux 15.10 x64 |
Could try to delete these pokemon with empty settings, such as Flareon. Might be that the bot checks if a pokemon name is provided, and if so, checks its settings... which you haven't defined :) |
This error occurs when something keeps the bot from starting up, which causes an exception, and in the exception handler we read from the bot variable which isn't defined yet (because we failed to construct it). Any failures related to the config is just part of it failing to construct but unrelated to the real issue. |
Actually, it was because I had Google Analytics blocked in /etc/hosts as a On Aug 5, 2016 16:00, "Eli White" [email protected] wrote:
|
@EvilSupahFly Don't think its related to the real issue. Mine is occuring when i execute the bot from PHP. When I use it in command-line, it works perfectly. |
https://app.getsentry.com/pokemongof/pokemongo-bot/issues/147423678/
The text was updated successfully, but these errors were encountered: