yenchenlin / DeepLearningFlappyBird

Flappy Bird hack using Deep Reinforcement Learning (Deep Q-learning).
MIT License
6.65k stars 2.04k forks source link

How to handel png file? #21

Open yfliao opened 8 years ago

yfliao commented 8 years ago

How to handle png file? I got the following message and have no idea how to solve it. I had tried to install pil or pillow but didn't work.

$python deep_q_network.py Traceback (most recent call last): File "deep_q_network.py", line 8, in import wrapped_flappy_bird as game File "game/wrapped_flappy_bird.py", line 19, in 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

ilovezhenzhen commented 7 years ago

me too pygame.error: File is not a Windows BMP file???