-
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
[dev] crash on refresh inventory #4956
Comments
Merged
I have same problem |
same problem. is it some kind of race condition between the metrics and init_inventory? its trying to refresh the inventory before initializing it? |
Latest code should already fixed this issue, reopen if not pls. |
now ok. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
git pull , start bot, bot work
Actual Behavior
bot don t work anymore
Your FULL config.json
config is ok. use config.json.example only with different altitude
Output when issue occurred
python pokecli.py -af configs/auth.json -cf configs/config.json
2016-08-30 20:23:53,156 [ cli] [INFO] PokemonGO Bot v1.0
2016-08-30 20:23:53,164 [ cli] [INFO] commit: 8c74150
2016-08-30 20:23:53,172 [ cli] [INFO] Configuration initialized
[2016-08-30 20:23:53] [SleepSchedule] [INFO] [next_sleep] Next sleep at 12:07:51, for a duration of 5:14:09
[2016-08-30 20:23:53] [PokemonGoBot] [INFO] [set_start_location] Setting start location.
[2016-08-30 20:23:53] [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
[2016-08-30 20:23:53] [PokemonGoBot] [INFO] [location_found] Location found: -----------------
[2016-08-30 20:23:53] [PokemonGoBot] [INFO] [position_update] Now at -----------
[2016-08-30 20:23:53] [PokemonGoBot] [INFO] [login_started] Login procedure started.
[2016-08-30 20:23:56] [PokemonGoBot] [INFO] [login_successful] Login successful.
[2016-08-30 20:23:56] [PokemonGoBot] [INFO] Found encrypt.so! Platform: linux2 encrypt.so directory: /home/dev/Poke/PokemonGo-Bot
[2016-08-30 20:23:56] [PokemonGoBot] [INFO]
Traceback (most recent call last):
File "pokecli.py", line 781, in
main()
File "pokecli.py", line 217, in main
report_summary(bot)
File "pokecli.py", line 265, in report_summary
metrics.capture_stats()
File "/home/dev/Poke/PokemonGo-Bot/pokemongo_bot/metrics.py", line 117, in capture_stats
inventory.refresh_inventory()
File "/home/dev/Poke/PokemonGo-Bot/pokemongo_bot/inventory.py", line 1338, in refresh_inventory
_inventory.refresh(data)
AttributeError: 'NoneType' object has no attribute 'refresh'
Steps to Reproduce
git pull to dev commit: 8c74150 , same on 0d2e093
(clean /data don't solve)
run bot
Other Information
OS: debian Branch: dev Git Commit: 8c74150
The text was updated successfully, but these errors were encountered: