PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

[DEV] Map location data was not valid

Open mrwbsn opened this issue 10 years ago • 2 comments

Expected Behavior

Run normally and can snipe Pokemon like #1992

Actual Behavior

with MoveToMapPokemon setting like this:

"config": {
          "address": "http://localhost:8007",
          "max_distance": 500,
          "min_time": 60,
          "prioritize_vips": true,
          "snipe": false,
          "update_map": true,
          "mode": "priority",

After login, bot will produce an error

Traceback (most recent call last):
  File "pokecli.py", line 446, in <module>
    main()
  File "pokecli.py", line 71, in main
    bot.tick()
  File "/home/mrwbsn/Workspaces/PokemonGo-Bot/pokemongo_bot/__init__.py", line 92, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "/home/mrwbsn/Workspaces/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 161, in work
    self.update_map_location()
  File "/home/mrwbsn/Workspaces/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 107, in update_map_location
    return log.logger('Map location data was not valid', 'red')
NameError: global name 'log' is not defined

and if I disable update_map option to false, it will not produce error but a message: Map data is not valid

Steps to Reproduce

git pull, use config.json.map.example setting.

I have started my PokemonGoMap with python -m SimpleHTTPServer 8007

Other Information

OS: Linux Git Commit: 4a1f6493a78ce246aac81f243d2f562f22880529 Python Version: python 2.7.12

mrwbsn avatar Aug 03 '16 04:08 mrwbsn

Why was this closed? Having the same issue

jolyonbennett avatar Aug 03 '16 11:08 jolyonbennett

It's closed because it got fixed here. log.logger is a typo and should be changed to logger.log

Fxwfran avatar Aug 08 '16 05:08 Fxwfran