Closed fauzan-n closed 8 years ago
You're using the wrong map instance. You're trying to use the bot visualisation map (used to show the bots behaviour), rather than the PokemonGo-Map which scans for pokemon (to snipe).
Closing issue as it's not bot bug related. If you require assistance, feel free to join the slack server and join the #help channel
### Expected Behavior Teleport to pokemon, encounter pokemon, teleport back and catch it.
### Actual Behavior Failure! Map location data was not valid2016-08-12 10:01:19,225 [ cli] [INFO] 2016-08-12 10:01:19,225 [ cli] [INFO] Ran for 0:00:12 2016-08-12 10:01:19,225 [ cli] [INFO] Total XP Earned: 0 Average: 0.00/h 2016-08-12 10:01:19,225 [ cli] [INFO] Travelled 0.00km 2016-08-12 10:01:19,226 [ cli] [INFO] Visited 0 stops 2016-08-12 10:01:19,226 [ cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before 2016-08-12 10:01:19,226 [ cli] [INFO] Threw 0 pokeballs 2016-08-12 10:01:19,226 [ cli] [INFO] Earned 0 Stardust 2016-08-12 10:01:19,226 [ cli] [INFO] 2016-08-12 10:01:19,226 [ cli] [INFO] Highest CP Pokemon: 2016-08-12 10:01:19,226 [ cli] [INFO] Most Perfect Pokemon: Traceback (most recent call last): File "pokecli.py", line 514, in
main()
File "pokecli.py", line 96, in main
bot.tick()
File "/home/f/PokemonGo-Bot/pokemongo_bot/init.py", line 468, in tick
if worker.work() == WorkerResult.RUNNING:
File "/home/f/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 240, in work
self.update_map_location()
File "/home/f/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 179, in update_map_location
return log.logger(err, 'red')
NameError: global name 'log' is not defined
2016-08-12 10:01:19,236 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/home/f/.local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/home/f/.local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/home/f/.local/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/home/f/.local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/home/f/.local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/home/f/.local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/f/.local/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/home/f/.local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 895, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-12 10:01:19,238 [sentry.errors.uncaught] [ERROR] [u"NameError: global name 'log' is not defined", u' File "pokecli.py", line 514, in ', u' File "pokecli.py", line 96, in main', u' File "pokemongo_bot/init.py", line 468, in tick', u' File "pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 240, in work', u' File "pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 179, in update_map_location']
Fri Aug 12 10:01:19 WIB 2016 Pokebot Stopped.
Press any button or wait 20 seconds to continue.
### Your config.json (remove your credentials and any other private info)
### Steps to Reproduce I Started the map with
cd web/; python -m SimpleHTTPServer
Then I started the bot./run.sh
and then got sniping error like that### Other Information OS: Linux Mint 18 Sarah \n \l Git Commit: 0292c2f426b2432be70b0ca867fa62d8436cb5bf Python Version: Python 2.7.12