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

[dev] crash on refresh inventory #4956

Closed
MZorzy opened this issue Aug 30, 2016 · 4 comments
Closed

[dev] crash on refresh inventory #4956

MZorzy opened this issue Aug 30, 2016 · 4 comments

Comments

@MZorzy
Copy link

MZorzy commented Aug 30, 2016

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

@MZorzy MZorzy mentioned this issue Aug 30, 2016
@thanhtran0302
Copy link
Contributor

thanhtran0302 commented Aug 30, 2016

I have same problem

@drricksanchez321
Copy link

same problem. is it some kind of race condition between the metrics and init_inventory? its trying to refresh the inventory before initializing it?

@solderzzc
Copy link
Contributor

Latest code should already fixed this issue, reopen if not pls.

@MZorzy
Copy link
Author

MZorzy commented Aug 30, 2016

now ok.

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

4 participants