-
Notifications
You must be signed in to change notification settings - Fork 178
The latest version cannot run on linux #12
Description
I upgrade the python-sc2 package to 0.4.5 and I find I cannot run even the worker rush script on my computer whose operation system is linux. Here is the error report:
Error: expected response: 2, actual response: 0
Error reported: Must first start a game with CreateGame or specify ports to join another client's game
Traceback (most recent call last):
INFO:sc2.sc2process:Cleanup complete
File "/home/wangjian/DeepLearning/starcraft/MacroOperation/MacroOperation.py", line 18, in
main()
File "/home/wangjian/DeepLearning/starcraft/MacroOperation/MacroOperation.py", line 15, in main
], realtime=True)
File "/home/wangjian/anaconda3/lib/python3.6/site-packages/sc2/main.py", line 127, in run_game
_host_game(map_settings, players, **kwargs)
File "/home/wangjian/anaconda3/lib/python3.6/asyncio/base_events.py", line 467, in run_until_complete
return future.result()
File "/home/wangjian/anaconda3/lib/python3.6/site-packages/sc2/main.py", line 88, in _host_game
result = await _play_game(players[0], client, realtime, portconfig, step_time_limit)
File "/home/wangjian/anaconda3/lib/python3.6/site-packages/sc2/main.py", line 65, in _play_game
player_id = await client.join_game(player.race, portconfig=portconfig)
File "/home/wangjian/anaconda3/lib/python3.6/site-packages/sc2/client.py", line 52, in join_game
result = await self._execute(join_game=req)
File "/home/wangjian/anaconda3/lib/python3.6/site-packages/sc2/protocol.py", line 56, in _execute
raise ProtocolError(f"{response.error}")
sc2.protocol.ProtocolError: ["Must first start a game with CreateGame or specify ports to join another client's game"]