Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python pygame error : Failed loading libpng.dylib: dlopen(libpng.dylib, 2): image not found

I installed the FlapPyBird repo from https://github.com/sourabhv/FlapPyBird. I have libpng installed but when i try to run the program with python flappy.py i get

Failed loading libpng.dylib: dlopen(libpng.dylib, 2): image not found

Any ideas about whats wrong? Thanks

like image 274
Alex Gamota Avatar asked Jul 28 '16 19:07

Alex Gamota


1 Answers

Maybe you must install libpng?

You can do it with homebrew:

brew install libpng
like image 188
Evgeny Palguev Avatar answered Oct 04 '22 16:10

Evgeny Palguev