kimbring2 / AlphaStar_Implementation

This project is implementation code of AlphaStar
Apache License 2.0
187 stars 26 forks source link

Failed on running trajectory_generator.py: RuntimeError SC2_x64 #9

Closed mlx3223mlx closed 2 years ago

mlx3223mlx commented 2 years ago

when I tried to run python trajectory_generator.py, I got error messages below and got nothing in the saving_path pysc2_dataset/simple64.

RuntimeError: Trying to run '/home/auto/StarCraftII/Versions/Base71663/SC2_x64', but it isn't executable.

kimbring2 commented 2 years ago

@mlx3223mlx Hello, can you run the below command?

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

Please tell me the result after running them.

mlx3223mlx commented 2 years ago

@mlx3223mlx Hello, can you run the below command?

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

Please tell me the result after running them.

hello,I tried the command you gave and the result is as follows

$ python -m pysc2.bin.agent --map Simple64 pygame 2.1.2 (SDL 2.0.16, Python 3.8.0) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/runpy.py", line 192, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/site-packages/pysc2/bin/agent.py", line 164, in app.run(main) File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/site-packages/absl/app.py", line 312, in run _run_main(main, args) File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/site-packages/absl/app.py", line 258, in _run_main sys.exit(main(argv)) File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/site-packages/pysc2/bin/agent.py", line 150, in main run_thread(agent_classes, players, FLAGS.map, FLAGS.render) File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/site-packages/pysc2/bin/agent.py", line 90, in run_thread with sc2_env.SC2Env( File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/site-packages/pysc2/env/sc2_env.py", line 287, in init self._launch_game() File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/site-packages/pysc2/env/sc2_env.py", line 355, in _launch_game self._sc2_procs = [ File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/site-packages/pysc2/env/sc2_env.py", line 356, in self._run_config.start(extra_ports=self._ports, File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/site-packages/pysc2/run_configs/platforms.py", line 204, in start return super(Linux, self).start( File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/site-packages/pysc2/run_configs/platforms.py", line 87, in start return sc_process.StarcraftProcess( File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/site-packages/pysc2/lib/sc_process.py", line 87, in init self._check_exists(exec_path) File "/home/auto/anaconda3/envs/tensorflowGPU/lib/python3.8/site-packages/pysc2/lib/sc_process.py", line 193, in _check_exists raise RuntimeError( RuntimeError: Trying to run '/home/auto/StarCraftII/Versions/Base71663/SC2_x64', but it isn't executable. I0519 09:54:00.227208 139765055600448 sc2_env.py:752] Environment Close

$ python -m pysc2.bin.play --replay pygame 2.1.2 (SDL 2.0.16, Python 3.8.0) Hello from the pygame community. https://www.pygame.org/contribute.html FATAL Flags parsing error: Missing value for flag --replay Pass --helpshort or --helpfull to see help on flags.

mlx3223mlx commented 2 years ago

I solved the problem by modifying the file permissions.