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

运行 python test_cnn.py 报错 #19

Open
tianhm opened this issue Jul 1, 2023 · 2 comments
Open

运行 python test_cnn.py 报错 #19

tianhm opened this issue Jul 1, 2023 · 2 comments

Comments

@tianhm
Copy link

tianhm commented Jul 1, 2023

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 可以正常执行。

@icuxika
Copy link

icuxika commented Jul 2, 2023

屏幕截图 2023-07-02 161834
可以暂时让这部分代码不作用就可以了,我实在WSL2的Ubuntu-22.04中遇到这个问题

@avselang
Copy link

是不是silent_mode设置一下就行?

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

3 participants