To try to get pygame 1.9.2 installed easily (without any package managers), I tried doing the sudo install.
The install soaked correctly: Collecting pygame Downloading pygame-1.9.2-cp27-cp27m-macosx_10_9_intel.whl (4.8MB) 100% |████████████████████████████████| 4.8MB 125kB/s Installing collected packages: pygame Successfully installed pygame-1.9.2 IrvKalbs-MBP:~ irvkalb$ But when I tried a simple import of pygame in the shell, it still fails (with the exact same message I saw earlier): Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 12:40:10) [GCC 4.2.1 (Apple Inc. build 5577)] on darwin Type "copyright", "credits" or "license()" for more information. >>> import pygame Traceback (most recent call last): File "<pyshell#0>", line 0, in <module> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/__init__.py", line 133, in <module> from pygame.base import * ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so, 2): Symbol not found: _SDL_EnableUNICODE Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so Expected in: flat namespace in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so >>> I am open to any other suggestions to get pygame running on Sierra with Python 2.7.13. This should be easy ... but it is extremely frustrating that I've spent a few days trying to get this environment set up. Irv > On Dec 29, 2016, at 2:34 PM, Daniel Foerster <pydsig...@gmail.com> wrote: > > I'm thinking you should probably throw a sudo on the front of that (or > whatever the Mac equivalent is). > > On 12/29/2016 04:15 PM, Irv Kalb wrote: >> >>> On Dec 29, 2016, at 8:42 AM, Thomas Kluyver <tak...@gmail.com >>> <mailto:tak...@gmail.com>> wrote: >>> >>> On 28 December 2016 at 23:41, Irv Kalb <i...@furrypants.com >>> <mailto:i...@furrypants.com>> wrote: >>> Also, when looking to find the latest version of pygame, on the pygame >>> downloads site, I see version 1.9.1. But if I go to PyPi at >>> https://pypi.python.org/pypi/Pygame#downloads >>> <https://pypi.python.org/pypi/Pygame#downloads> >>> >>> It shows version 1.9.2. But that shows a wheel file (.whl). >>> >>> Can anyone tell me if this is a more recent version that might fix the >>> problems that I am seeing? And if so, is there a simple way to install a >>> .whl file without going through a terminal prompt? >>> >>> 1.9.2 is the latest; unfortunately so far no-one has been able to update >>> the downloads page. >>> >>> The normal way to use wheels (.whl files) is to 'pip install pygame' at a >>> command line. I don't know of a way to install them without using the >>> terminal, and I don't know anything about building Mac GUI installers. >>> Sorry! >> >> Thanks very much for your response. I cleared out my 1.9.1 version of >> pygame, and used pip. Here's what happened: >> >> IrvKalbs-MBP:~ irvkalb$ pip install pygame >> Collecting pygame >> Using cached pygame-1.9.2-cp27-cp27m-macosx_10_9_intel.whl >> Installing collected packages: pygame >> Exception: >> Traceback (most recent call last): >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/basecommand.py", >> line 215, in main >> status = self.run(options, args) >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/commands/install.py", >> line 342, in run >> prefix=options.prefix_path, >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_set.py", >> line 784, in install >> **kwargs >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_install.py", >> line 851, in install >> self.move_wheel_files(self.source_dir, root=root, prefix=prefix) >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_install.py", >> line 1064, in move_wheel_files >> isolated=self.isolated, >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/wheel.py", >> line 377, in move_wheel_files >> clobber(source, dest, False, fixer=fixer, filter=filter) >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/wheel.py", >> line 329, in clobber >> os.utime(destfile, (st.st_atime, st.st_mtime)) >> OSError: [Errno 1] Operation not permitted: >> '/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pygame/bitmask.h' >> IrvKalbs-MBP:~ irvkalb$ >> >> However, that did leave me with a pygame folder and a pygame-1.9.2-dist-info >> folder in my site-packages folder. And when I try to do import it from the >> shell in IDLE, I get this: >> >> Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 12:40:10) >> [GCC 4.2.1 (Apple Inc. build 5577)] on darwin >> Type "copyright", "credits" or "license()" for more information. >> >>> import pygame >> >> Traceback (most recent call last): >> File "<pyshell#0>", line 0, in <module> >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/__init__.py", >> line 133, in <module> >> from pygame.base import * >> ImportError: >> dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so, >> 2): Symbol not found: _SDL_EnableUNICODE >> Referenced from: >> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so >> Expected in: flat namespace >> in >> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so >> >>> >> >> Something looks very wrong. Any other suggestions for getting a stable >> Python/IDLE environment with pygame on Mac Sierra (10.12)? >> >> Thanks, >> >> Irv >> >> >> >> >> >> >