I would like to use PyGame with the latest version of Python 2, on my Mac (running OS X 10.9.5). My understanding is that to do this, I need to install a 32-bit version of Python.
I went to Python.org, followed the Mac links and downloaded and installed the 32-bit version of Python 2.7.12. Everything worked fine.
Then, I went to http://pygame.org/download.shtml , and found pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3.dmg
and installed that. The installation seemed to work fine.
To test it, I opened IDLE, and tried this:
import pygame
rather than importing cleanly, I get the following traceback:
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 95, in <module>
from pygame.base import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/pygame/__init__.py", line 103, in <module>
Color = color.Color #error on this line
NameError: name 'color' is not defined
I have developed Python with PyGame programs for years with an earlier version of Python - but I needed to update to the latest version of Python. But now, I cannot run any of my PyGame-based code because of this error. (I've tried these steps multiple times, always resulting in the same error.)
Can anyone help me figure out how to get PyGame installed correctly so I can continue development?
Ideally, is there a series of steps that works correctly WITHOUT having to enter any commands at a command line? I need to be able to instruct new programmers how to get this environment set up, and they have zero experience doing anything at the command line.