os: ubuntu 18.04
error:
Using seed = 783742036 for testing.
Traceback (most recent call last):
File "test_cnn.py", line 24, in
env = SnakeEnv(seed=seed, limit_step=False, silent_mode=False)
File "/home/tianhm/snake-ai/main/snake_game_custom_wrapper_cnn.py", line 11, in init
self.game = SnakeGame(seed=seed, board_size=board_size, silent_mode=silent_mode)
File "/home/tianhm/snake-ai/main/snake_game.py", line 30, in init
mixer.init()
pygame.error: dsp: No such audio device
os: ubuntu 18.04 error: Using seed = 783742036 for testing. Traceback (most recent call last): File "test_cnn.py", line 24, in
env = SnakeEnv(seed=seed, limit_step=False, silent_mode=False)
File "/home/tianhm/snake-ai/main/snake_game_custom_wrapper_cnn.py", line 11, in init
self.game = SnakeGame(seed=seed, board_size=board_size, silent_mode=silent_mode)
File "/home/tianhm/snake-ai/main/snake_game.py", line 30, in init
mixer.init()
pygame.error: dsp: No such audio device
但是 python snake_game.py 可以正常执行。