Error importing pygame.font

import pygameworks fine for me, but import pygame.fontcrashes with an error:

ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/font.so, 2): Library not loaded: /usr/local/lib/libpng15.15.dylib Referenced from: /usr/local/lib/libfreetype.6.dylib Reason: Incompatible library version: libfreetype.6.dylib requires version 30.0.0 or later, but libpng15.15.dylib provides version 20.0.0

This is in Python 2.7 (not the system version), Mac OS 10.9. I installed libpng-1.6.9 to the idea that libfreetype wants a later version, but that didn't seem to help.

+3
source share
1 answer

It so happened that libpng was not installed as a dependency for some reason. So I grabbed the 64-bit Mac OS X binary system at http://www.libpng.org/pub/png/libpng.html . But the version was 1.5.4, the old one.

, libpng15 usr/local/lib, 1.5.18 http://sourceforge.net/projects/libpng/files/libpng15/1.5.18/ :

./configure [--prefix=/path] make check make install

.

. , , .

+5