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

0 votes
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
 

Can anyone help me solve this issue?
May 31, 2019 in Python by ana1504.k
• 7,890 points
365 views

1 answer to this question.

0 votes

Try installing libpng

You can do it with homebrew and this might help you:

brew install libpng
answered May 31, 2019 by SDeb
• 13,250 points

Related Questions In Python

0 votes
1 answer

Error:pip install mysql-python fails with EnvironmentError: mysql_config not found

Hello @kartik, It seems mysql_config is missing on ...READ MORE

answered May 5 in Python by Niroj
• 32,590 points
117 views
0 votes
1 answer

Error:pip install mysql-python fails with EnvironmentError: mysql_config not found

Hello @kartik, For centos users: yum install -y mysql-devel python-devel python-setuptools then pip ...READ MORE

answered May 27 in Python by Niroj
• 32,590 points
166 views
0 votes
1 answer

Error:mysql_config not found when installing mysqldb python interface

Hello @kartik, MySQLdb is a python interface for ...READ MORE

answered May 27 in Python by Niroj
• 32,590 points
163 views
0 votes
1 answer

Python error: No handlers could be found for logger “xhtml2pdf”

The only solution is to define a ...READ MORE

answered Sep 5, 2018 in Python by Priyaj
• 57,530 points
537 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,057 views
0 votes
0 answers
0 votes
11 answers
0 votes
1 answer

How is Python 2.7.3 and Python 3.3 different?

raw_input() is not used in Python 3. Use input()  ...READ MORE

answered Sep 12, 2018 in Python by SDeb
• 13,250 points
96 views