yanpanlau / Keras-FlappyBird

Using Keras and Deep Q-Network to Play FlappyBird

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File is not a Windows BMP file

pannous opened this issue · comments

~/Keras-FlappyBird$ python qlearn.py -m "Run" Recommended matplotlib backend isAggfor full skimage.viewer functionality. 2016-07-25 09:28:56.396 Python[32404:8035262] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/h6/5yk5fw6x58l_s99ypvht_r8w0000gn/T/org.python.python.savedState Traceback (most recent call last): File "qlearn.py", line 11, in <module> import wrapped_flappy_bird as game File "game/wrapped_flappy_bird.py", line 19, in <module> IMAGES, SOUNDS, HITMASKS = flappy_bird_utils.load() File "game/flappy_bird_utils.py", line 21, in load pygame.image.load('assets/sprites/0.png').convert_alpha(), pygame.error: File is not a Windows BMP file

Are you running in MacOS? I found the following solution in the stack overflow. Can you give a try?

http://stackoverflow.com/questions/25120883/how-to-uninstall-pygame-on-mac-osx-10-9-4

It looks to me the pygame is not install properly.

nice, Thanks that worked