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

MoveToMapPokemon: error on came back to last position #3016

Closed
Lunik opened this issue Aug 8, 2016 · 4 comments
Closed

MoveToMapPokemon: error on came back to last position #3016

Lunik opened this issue Aug 8, 2016 · 4 comments

Comments

@Lunik
Copy link

Lunik commented Aug 8, 2016

I get this error when the bot try to get back to his last position after snipe.

Actual Behavior

2016-08-08 09:59:25,902 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_teleport_to] Tel
eporting to Tentacruel. (0.36km)
2016-08-08 09:59:25,902 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_encounter] Encou
ntered Pokemon: Tentacruel
Traceback (most recent call last):
  File "pokecli.py", line 503, in <module>
    main()
  File "pokecli.py", line 89, in main
    bot.tick()
  File "/home/lunik/pkm/pokemongo_bot/__init__.py", line 434, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "/home/lunik/pkm/pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 255, i
n work
    return self.snipe(pokemon)
  File "/home/lunik/pkm/pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 214, i
n snipe
    self._teleport_back()
  File "/home/lunik/pkm/pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 339, i
n _teleport_back
    data={'last_lat': last_position[0], 'last_lon': last_position[1]}
  File "/home/lunik/pkm/pokemongo_bot/base_task.py", line 27, in emit_event
    data=data
  File "/home/lunik/pkm/pokemongo_bot/event_manager.py", line 61, in emit
    formatted_msg = formatted.format(**data)
KeyError: 'last_long'

Steps to Reproduce

"type": "MoveToMapPokemon",
        "config": {
          "address": "http://localhost:5050",
          "max_distance": 500,
          "min_time": 60,
          "prioritize_vips": true,
          "snipe": true,
          "update_map": false,
          "mode": "priority",
          "catch": {}
        }

Other Information

OS: Ubuntu
Git Commit: 563f898
Python Version: Python 2.7.9

@mikaelkristiansson
Copy link

I had the same problem this morning, so I just reversed to this commit: https://github.com/PokemonGoF/PokemonGo-Bot/tree/e5b7eda6cd7054baadbd6440bf9b94d3d5cd88e3 until it will be fixed

@mvrska
Copy link
Contributor

mvrska commented Aug 8, 2016

sorry for the offtopic question on this thread but what PoGO Map are you using now?

@Lunik
Copy link
Author

Lunik commented Aug 8, 2016

@mhdasding
Copy link
Contributor

will be fixed with #3014

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

5 participants