I’ve found that I can use the pip version of pygame (version 1.9.2b6) on Sierra, with a little bit of help.
It can’t find a few libraries, but it will find them if you copy them to /usr/local/lib like this: mkdir -p /usr/local/lib cd /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/.dylibs cp libfreetype.6.dylib /usr/local/lib cp libjpeg.8.dylib /usr/local/lib cp libpng16.16.dylib /usr/local/lib cp libportmidi.dylib /usr/local/lib cd /usr/local/lib ln -s libfreetype.6.dylib libfreetype.dylib ln -s libjpeg.8.dylib libjpeg.dylib ln -s libpng16.16.dylib libpng.dylib Loading png and jpg images work just fine at this point. A few things still don’t work: · pygame.mixer.music does not work, as it relies on libsmpeg.dylib which isn’t available · pygame.font.SysFont and pygame.font.get_fonts don’t work, and produce a dialog asking about installing X11 I’ve worked around the SysFont problem by using pygame.font.Font instead and giving it direct pathnames to the fonts stored in /System/Library/Fonts and /Library/Fonts. It’s ugly (and not very portable) but works as a stopgap until the final 1.9.2 release comes out which will hopefully have these issues resolved. Andrew Merrill [cid:logoforsignature_f6a00de8-9690-4ffc-bc45-3582bedbfd0f.jpg] Andrew Merrill, Upper School Computer Science Teacher 8825 SW Barnes Rd. Portland, OR 97225 T: 503-297-1894 x | E: merri...@catlin.edu www.catlin.edu From: <owner-pygame-us...@seul.org> on behalf of Thomas Kluyver <tak...@gmail.com> Reply-To: pygame-users <pygame-users@seul.org> Date: Friday, October 28, 2016 at 1:42 AM To: pygame-users <pygame-users@seul.org> Subject: Re: [pygame] Pygame with Sierra On 28 October 2016 at 02:42, Jeffrey Danowitz <danow...@bezeqint.net<mailto:danow...@bezeqint.net>> wrote: Anyway, when I actually do pygame.version.ver I get 1.9.2b6 - the one from pip, and this is from the anaconda python. So apparently the newer version was linked. The version from pip seems to have some issues with png loading: https://bitbucket.org/pygame/pygame/issues/300/os-x-wheels-dmg-and-zip-builds-with-travis So you may want to use the conda version for now, even if it's a bit older. Thomas