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

Tuple index out of range when updating weblocation

Open fredrik-hellmangroup opened this issue 10 years ago • 5 comments

Expected Behavior

Seems to be related to updating web server location? Anyway it should update accordingly

Actual Behavior

[21:47:38] Scanning area for objects.... [21:47:38] Walking from (59, 18) to (59, 18) 0.00km Traceback (most recent call last): File "D:\Pokemon stuff\PokemonGo-Bot\pokecli.py", line 223, in main() File "D:\Pokemon stuff\PokemonGo-Bot\pokecli.py", line 214, in main bot.take_step() File "D:\Pokemon stuff\PokemonGo-Bot\pokemongo_bot__init__.py", line 38, in take_step cells = self.find_close_cells(*location) File "D:\Pokemon stuff\PokemonGo-Bot\pokemongo_bot__init__.py", line 107, in find_close_cells self.update_web_location(map_cells,lat,lng) File "D:\Pokemon stuff\PokemonGo-Bot\pokemongo_bot__init__.py", line 50, in update_web_location alt = self.position[2] IndexError: tuple index out of range

Steps to Reproduce

N/A, just ran it on git commit below and it occured after 30 min

Other Information

OS: Win 10 x64 Git Commit: eb931c0a4fd57b65f88873a67506b49f0a3534b0

fredrik-hellmangroup avatar Jul 25 '16 20:07 fredrik-hellmangroup

Same issue here

mcapala avatar Jul 25 '16 21:07 mcapala

same issue here: Traceback (most recent call last): File "pokecli.py", line 223, in main() File "pokecli.py", line 214, in main bot.take_step() File "C:\Users\Desktop\TestPokemonDev\PokemonGo-Bot\pokemongo_bot__init__.py", line 38, in take_step cells = self.find_close_cells(*location) File "C:\Users\Desktop\TestPokemonDev\PokemonGo-Bot\pokemongo_bot__init__.py", line 107, in find_close_cells self.update_web_location(map_cells,lat,lng) File "C:\Users\Desktop\TestPokemonDev\PokemonGo-Bot\pokemongo_bot__init__.py", line 50, in update_web_location alt = self.position[2] IndexError: tuple index out of range

Happened right after it said session stale, re-logging in, tries to login, says login successful and error occurs shortly after it begins scanning.

RiberoD07 avatar Jul 26 '16 00:07 RiberoD07

Try to remove location-*char_name*.json file from web directory

hakkotsu avatar Jul 26 '16 01:07 hakkotsu

Is this issue fixed?

shaosh avatar Jul 26 '16 15:07 shaosh

removing location-char_name.json file from web directory resolves issue

fredrik-hellmangroup avatar Jul 26 '16 23:07 fredrik-hellmangroup