yanpanlau / Keras-FlappyBird

Using Keras and Deep Q-Network to Play FlappyBird

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

something wrong with import wrapped_flappy_bird as game

wzm2256 opened this issue · comments

Traceback (most recent call last):
File "qlearn.py", line 11, 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

I'm using Ubuntu 14.04 anaconda python 2.7, pygame-1.9.2.

Any ideals? I see another issue has reported the same problem, but he was in Mac OS, and I am in Ubuntu, I think I have pygame installed properly because I can use import pygame in python terminal. Could it be the version problem?

Finally, I solved this, as I did lots of things to fix this, I don't know eactly which is useful,
I installed pygame and it didn't work, so I install pillow and pil, but it still didn't work. Then I reinstalled pygame, and it works.
I guess pygame has to be installed after you installed pil, but I'm not sure.