Search code examples
pythonconnectionstarcraftgym

"Failed to connect to the SC2 websocket. Is it up?"


I am trying to run the Deepmind Environment for Starcraft II, following this tutorial

After running:

$ python -m pysc2.bin.play --map Simple64

I get this error:

raise ConnectError("Failed to connect to the SC2 websocket. Is it up?")

within the pysc2.lib.remote_controller

Any idea how to fix this?


Solution

  • This might be obvious for some, but it took me 25 minutes, so I'll put it here.

    The SC2 websocket is up once you completely installed and started the game.

    Not only the battlenet interface.

    Note: Make sure that the game is in the current version (update if possible)