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

Bug - IndexError: list index out of range

Open jocelyndrean opened this issue 10 years ago • 7 comments

Hey huys, I always got errors since my last ggpull. When bot tries to exchange for a candy, I got a IndexError: list index out of range Thanks for this amazing work ! :)

I Launched this command : ./pokecli.py -a ptc -u *** -p *** -l Paris -c 100

logs : [#] A Wild Rattata appeared! [CP36] [x] Using Pokeball... [x] Captured Rattata! [CP36] - exchanging for candy [x] Exchanged successfuly! Traceback (most recent call last): File "./pokecli.py", line 116, in main() File "./pokecli.py", line 113, in main bot.take_step() File "/Users/jd/dev/pokemon/original/PokemonGo-Bot/bot.py", line 29, in take_step self.stepper.take_step() File "/Users/jd/dev/pokemon/original/PokemonGo-Bot/stepper.py", line 65, in take_step self.bot.work_on_cell(cell,position) File "/Users/jd/dev/pokemon/original/PokemonGo-Bot/bot.py", line 36, in work_on_cell worker.work() File "/Users/jd/dev/pokemon/original/PokemonGo-Bot/cell_workers/pokemon_catch_worker.py", line 77, in work self.transfer_pokemon(list(Set(id_list2) - Set(id_list1))[0]) IndexError: list index out of range

jocelyndrean avatar Jul 22 '16 06:07 jocelyndrean

Your inventory is full.

AdaptCharm avatar Jul 22 '16 06:07 AdaptCharm

Oh ? :( I got this in my log : [#] Bag Storage: 118/350 [#] Pokemon Storage: 51/250

jocelyndrean avatar Jul 22 '16 06:07 jocelyndrean

Same error. Both my bag and my pokemon storage were NOT full

CtrlAltDefeat94 avatar Jul 22 '16 06:07 CtrlAltDefeat94

confirm

dev-syco avatar Jul 22 '16 06:07 dev-syco

>>> list()[0]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IndexError: list index out of range

that's why, it should be easy to fix :)

FGRibreau avatar Jul 22 '16 07:07 FGRibreau

^ What should be done?

Unit731 avatar Jul 22 '16 08:07 Unit731

@Unit731 download the latest zip. This issue was resolved

RetroEngineering avatar Jul 22 '16 08:07 RetroEngineering