Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
YuZheng23 opened this issue Jan 19, 2024 · 2 comments
Open

Comments

@YuZheng23
Copy link

YuZheng23 commented Jan 19, 2024

(marl) zhengyu@gpu-v02 /workspace/S/zhengyu $ python -m smac.examples.random_agents
Version: B75689 (SC2.4.10)
Build: Aug 12 2019 17:16:57
Command Line: '"/workspace/S/zhengyu/StarCraftII/Versions/Base75689/SC2_x64" -listen 127.0.0.1 -port 42830 -dataDir /workspace/S/zhengyu/StarCraftII/ -tempDir /tmp/sc-1gvy92/'
Starting up...
Startup Phase 1 complete
Fatal error encountered!
Backtrace:
/workspace/S/zhengyu/StarCraftII/Versions/Base75689/SC2_x64[0x65e838]
/workspace/S/zhengyu/StarCraftII/Versions/Base75689/SC2_x64[0x65f270]
/workspace/S/zhengyu/StarCraftII/Versions/Base75689/SC2_x64[0x65ecc2]
/workspace/S/zhengyu/StarCraftII/Versions/Base75689/SC2_x64[0x5fc0d8]
/workspace/S/zhengyu/StarCraftII/Versions/Base75689/SC2_x64[0x1b946e8]
/workspace/S/zhengyu/StarCraftII/Versions/Base75689/SC2_x64[0x5f855c]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f5f04497555]
/workspace/S/zhengyu/StarCraftII/Versions/Base75689/SC2_x64[0x5f7f59]
Error condition code: '9'
Error suffix: 'Error'
Error preface: 'A fatal error occurred:'
Error failure: 'e_fileCorruptRepairable'
Error unique: '(NGDP:E_FAILURE)'
Error details: '"AppErrors.txt"'
Error description: 'AppErrors.txt'
WARNING:absl:SC2 isn't running, so bailing early on the websocket connection.
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/workspace/S/zhengyu/anaconda3/envs/marl/lib/python3.11/site-packages/smac/examples/random_agents.py", line 44, in
main()
File "/workspace/S/zhengyu/anaconda3/envs/marl/lib/python3.11/site-packages/smac/examples/random_agents.py", line 19, in main
env.reset()
File "/workspace/S/zhengyu/anaconda3/envs/marl/lib/python3.11/site-packages/smac/env/starcraft2/starcraft2.py", line 403, in reset
self._launch()
File "/workspace/S/zhengyu/anaconda3/envs/marl/lib/python3.11/site-packages/smac/env/starcraft2/starcraft2.py", line 323, in _launch
self._sc2_proc = self._run_config.start(
^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/S/zhengyu/anaconda3/envs/marl/lib/python3.11/site-packages/pysc2/run_configs/platforms.py", line 200, in start
return super(Linux, self).start(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/S/zhengyu/anaconda3/envs/marl/lib/python3.11/site-packages/pysc2/run_configs/platforms.py", line 83, in start
return sc_process.StarcraftProcess(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/S/zhengyu/anaconda3/envs/marl/lib/python3.11/site-packages/pysc2/lib/sc_process.py", line 137, in init
self._controller = remote_controller.RemoteController(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/S/zhengyu/anaconda3/envs/marl/lib/python3.11/site-packages/pysc2/lib/remote_controller.py", line 142, in init
sock = self._connect(host, port, proc, timeout_seconds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/S/zhengyu/anaconda3/envs/marl/lib/python3.11/site-packages/pysc2/lib/stopwatch.py", line 205, in _stopwatch
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/workspace/S/zhengyu/anaconda3/envs/marl/lib/python3.11/site-packages/pysc2/lib/remote_controller.py", line 176, in _connect
raise ConnectError("Failed to connect to the SC2 websocket. Is it up?")
pysc2.lib.remote_controller.ConnectError: Failed to connect to the SC2 websocket. Is it up?

@YuZheng23
Copy link
Author

I followed the tutorial exactly every step of the way and configured the smac environment without error, and the maps were downloaded new and placed in the corresponding locations, but this is the problem.

@winkkk248610
Copy link

May I ask if you have solved this problem? I have the same problem, if it is solved can you tell me the solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants