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

should_throttle_retry crash #2442

Closed
hYbridWY opened this issue Aug 3, 2016 · 3 comments
Closed

should_throttle_retry crash #2442

hYbridWY opened this issue Aug 3, 2016 · 3 comments

Comments

@hYbridWY
Copy link

hYbridWY commented Aug 3, 2016

Everything working fine, bot is walking then crashes to this. Happen multiple times so far. Everything is up-to-date.

Traceback (most recent call last):
  File "pokecli.py", line 445, in <module>
    main()
  File "pokecli.py", line 71, in main
    bot.tick()
  File "C:\Trainers\PokemonGo-Bot01\pokemongo_bot\__init__.py", line 92, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "C:\Trainers\PokemonGo-Bot01\pokemongo_bot\cell_workers\incubate_eggs.py", line 41, in work
    self._apply_incubators()
  File "C:\Trainers\PokemonGo-Bot01\pokemongo_bot\cell_workers\incubate_eggs.py", line 52, in _apply_incubators
    pokemon_id=egg["id"]
  File "c:\pokemongo-bot\src\pgoapi\pgoapi\pgoapi.py", line 84, in function
    return request.call()
  File "C:\Trainers\PokemonGo-Bot01\pokemongo_bot\api_wrapper.py", line 112, in call
    if should_throttle_retry:
UnboundLocalError: local variable 'should_throttle_retry' referenced before assignment
@Anti-CCP
Copy link

Anti-CCP commented Aug 3, 2016

Same problem here
Traceback (most recent call last):
��File "pokecli.py", line 446, in
��main()
��File "pokecli.py", line 71, in main
��bot.tick()
��File "/home/mcpe/PokemonGo-Bot/pokemongo_bot/init.py", line 92, in tick
��if worker.work() == WorkerResult.RUNNING:
��File "/home/mcpe/PokemonGo-Bot/pokemongo_bot/cell_workers/follow_spiral.py", line 92, in work
��if step_walker.step():
��File "/home/mcpe/PokemonGo-Bot/pokemongo_bot/step_walker.py", line 57, in step
��self.bot.heartbeat()
��File "/home/mcpe/PokemonGo-Bot/pokemongo_bot/init.py", line 547, in heartbeat
��self.update_web_location() # updates every tick
��File "/home/mcpe/PokemonGo-Bot/pokemongo_bot/init.py", line 150, in update_web_location
��gym_longitude=fort.get('longitude')
��File "/home/mcpe/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 84, in function
��return request.call()
��File "/home/mcpe/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 112, in call
����if should_throttle_retry:
UnboundLocalError: local variable 'should_throttle_retry' referenced before assignment
When I try to restart it

[03:55:43] Starting PokemonGo Bot....
[03:55:44] [x] Current egg hatches in 1.85 km
[03:55:45] Not spinning any forts as there aren't enough space. You might want to change your config to recycle more items if this message appears consistently.
[03:55:45] Not moving to any forts as there aren't enough space. You might want to change your config to recycle more items if this message appears consistently.
[03:55:45] Walking from (37.79550946193129, -122.40402303016896) to [37.79550946193129, -122.40402303016896] 0.00km
[03:55:46] Not spinning any forts as there aren't enough space. You might want to change your config to recycle more items if this message appears consistently.
[03:55:46] Not moving to any forts as there aren't enough space. You might want to change your config to recycle more items if this message appears consistently.
[03:55:46] Walking from (37.79550946193129, -122.40402303016896) to [37.796140240100854, -122.40402303016896] 0.07km
[03:55:55] Not spinning any forts as there aren't enough space. You might want to change your config to recycle more items if this message appears consistently.
[03:55:55] Not moving to any forts as there aren't enough space. You might want to change your config to recycle more items if this message appears consistently.
[03:56:04] [x] Current egg hatches in 1.85 km
[03:56:05] Not spinning any forts as there aren't enough space. You might want to change your config to recycle more items if this message appears consistently.
[03:56:05] Not moving to any forts as there aren't enough space. You might want to change your config to recycle more items if this message appears consistently.
[03:56:13] Not spinning any forts as there aren't enough space. You might want to change your config to recycle more items if this message appears consistently.
[03:56:13] Not moving to any forts as there aren't enough space. You might want to change your config to recycle more items if this message appears consistently.

Python 2.7.12
Ububtu 16.04 x64
4a1f649

@kax0
Copy link

kax0 commented Aug 3, 2016

Same here, bot was farming with path file

Traceback (most recent call last):
  File "pokecli.py", line 446, in <module>
    main()
  File "pokecli.py", line 71, in main
    bot.tick()
  File ".../pokemongo_bot/__init__.py", line 92, in tick
    if worker.work() == WorkerResult.RUNNING:
  File ".../pokemongo_bot/cell_workers/follow_path.py", line 77, in work
    if step_walker.step():
  File ".../pokemongo_bot/step_walker.py", line 57, in step
    self.bot.heartbeat()
  File ".../pokemongo_bot/__init__.py", line 547, in heartbeat
    self.update_web_location()  # updates every tick
  File ".../pokemongo_bot/__init__.py", line 150, in update_web_location
    gym_longitude=fort.get('longitude')
  File ".../src/pgoapi/pgoapi/pgoapi.py", line 84, in function
    return request.call()
  File ".../pokemongo_bot/api_wrapper.py", line 112, in call
    if should_throttle_retry:
UnboundLocalError: local variable 'should_throttle_retry' referenced before assignment

DayBr3ak added a commit to DayBr3ak/PokemonGo-Bot that referenced this issue Aug 3, 2016
Variables weren't correctly defined
@lhung
Copy link

lhung commented Aug 3, 2016

I just experienced the same crash, but have a different line number. I'm running commit 2f91fd0.

https://gist.github.com/lhung/5bdcb603b8f62e6fc23df419349a2df5

CapCap pushed a commit that referenced this issue Aug 3, 2016
* Fix #2442

Variables weren't correctly defined

* Fix typo
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