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

run random_agents failed #90

Open
hellofinch opened this issue Mar 8, 2022 · 0 comments
Open

run random_agents failed #90

hellofinch opened this issue Mar 8, 2022 · 0 comments

Comments

@hellofinch
Copy link

my command: python -m smac.examples.random_agents
output:

Version: B75689 (SC2.4.10)
Build: Aug 12 2019 17:16:57
Command Line: '"/home/ai/StarCraftII/Versions/Base75689/SC2_x64" -listen 127.0.0.1 -port 16951 -dataDir /home/ai/StarCraftII/ -tempDir /tmp/sc-84l7mdlz/'
Starting up...
Startup Phase 1 complete
Startup Phase 2 complete
Creating stub renderer...
Listening on: 127.0.0.1:16951
Startup Phase 3 complete. Ready for commands.
ConnectHandler: Request from 127.0.0.1:38870 accepted
ReadyHandler: 127.0.0.1:38870 ready
Traceback (most recent call last):
  File "/home/ai/anaconda3/envs/RL/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/ai/anaconda3/envs/RL/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/mnt/VMSTORE/smac/smac/examples/random_agents.py", line 44, in <module>
    main()
  File "/mnt/VMSTORE/smac/smac/examples/random_agents.py", line 19, in main
    env.reset()
  File "/mnt/VMSTORE/smac/smac/env/starcraft2/starcraft2.py", line 403, in reset
    self._launch()
  File "/mnt/VMSTORE/smac/smac/env/starcraft2/starcraft2.py", line 343, in _launch
    self._controller.create_game(create)
  File "/home/ai/anaconda3/envs/RL/lib/python3.7/site-packages/pysc2/lib/remote_controller.py", line 99, in _valid_status
    return func(self, *args, **kwargs)
  File "/home/ai/anaconda3/envs/RL/lib/python3.7/site-packages/pysc2/lib/remote_controller.py", line 74, in _check_error
    return check_error(func(*args, **kwargs), error_enum)
  File "/home/ai/anaconda3/envs/RL/lib/python3.7/site-packages/pysc2/lib/remote_controller.py", line 65, in check_error
    raise RequestError("%s.%s: '%s'" % (enum_name, error_name, details), res)
pysc2.lib.remote_controller.RequestError: SC2APIProtocol.ResponseCreateGame.Error.InvalidMapData: 'temporary map '' has invalid data.'
RequestQuit command received.
Closing Application...
DataHandler: unable to parse websocket frame.
CloseHandler: 127.0.0.1:38870 disconnected
ResponseThread: No connection, dropping the response.

The program exit with error.
How can I fix this?

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

1 participant