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] Map location data was not valid #2424

Closed
mrwbsn opened this issue Aug 3, 2016 · 2 comments
Closed

[DEV] Map location data was not valid #2424

mrwbsn opened this issue Aug 3, 2016 · 2 comments

Comments

@mrwbsn
Copy link

mrwbsn commented Aug 3, 2016

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: 4a1f649
Python Version: python 2.7.12

@mrwbsn mrwbsn closed this as completed Aug 3, 2016
@jolyonbennett
Copy link

Why was this closed? Having the same issue

@Fxwfran
Copy link

Fxwfran commented Aug 8, 2016

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

hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this issue Sep 28, 2016
* Connection pooling

- Added connection pooling for MySQL
- Added max connections
- Added FlaskDB object for opening/closing connections around request

* Openning and closing database after each search
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

3 participants