hsahovic / poke-env

A python interface for training Reinforcement Learning bots to battle on pokemon showdown
https://poke-env.readthedocs.io/
MIT License
297 stars 100 forks source link

cross_evaluate immediately hanging #162

Closed StevenGin closed 3 years ago

StevenGin commented 3 years ago

Working my way through the examples, however on the cross_evaluate example, running the code immedaitely hangs after printing this.

2021-05-22 02:40:40,484 - Player 1 - WARNING - Received pm: |pm| Player 1| Player 2|/challenge gen7randombattle|gen7randombattle||| 2021-05-22 02:40:40,485 - Player 2 - WARNING - Received pm: |pm| Player 1| Player 2|/challenge gen7randombattle|gen7randombattle||| 2021-05-22 02:40:40,485 - Player 1 - WARNING - Received pm: |pm| Player 1| Player 2|/text Player 1 wants to battle! 2021-05-22 02:40:40,485 - Player 2 - WARNING - Received pm: |pm| Player 1| Player 2|/text Player 1 wants to battle!

hsahovic commented 3 years ago

Hey @StevenGin,

Thanks for bringing this up. I believe this was caused by this PR in pokemon-showdown, which changed the way challenges are processed. I am working on implementing it into poke-env, and will release it before the end of the weekend.

hsahovic commented 3 years ago

This is solved by #163 and released in poke-env 0.4.14. Please upgrade the version you are using (pip install --upgrade poke-env) or pull master (git pull master in your poke-env clone) :)