[Pythonmac-SIG] Installing PyGame?

Bob Ippolito bob at redivi.com
Sun May 2 21:54:13 EDT 2004


On May 2, 2004, at 9:45 PM, Skip Montanaro wrote:

>
> Armin Rigo posted a reference to a Psyco description to python-dev the  
> other
> day which requires PyGame to view.
>
> For the life of me I can't figure out how to install PyGame on my Mac.  
>  The
> PackageManager stuff just doesn't seem to work at all for me.
> (Double-clicking /Applications/MacPython-2.3/PackageManager does  
> nothing and
> as far as I can tell there are no tea leaves left around to examine.)

Something is not right with your environment..  The tea leaves are in  
your system log, check the Console application in  
/Applications/Utilities.

> I tried installing the SDL and SDL-devel binary packages, but the  
> SDL-devel
> 1.2.7 package doesn't install properly (installer complains about  
> errors).
> I then backed up and installed SDL from source.  That didn't work well
> either.  SDL & PyGame both built and installed (in /Users/skip), but  
> when I
> tried to import pygam in pythonw I got a run-time linker error:
>
>     % pythonw
>     Python 2.4a0 (#39, May  2 2004, 17:18:18)
>     [GCC 3.3 20030304 (Apple Computer, Inc. build 1493)] on darwin
>     Type "help", "copyright", "credits" or "license" for more  
> information.
>     import py>>> import pygame
>     Traceback (most recent call last):
>       File "<stdin>", line 1, in ?
>       File  
> "/Users/skip/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-packages/pygame/__init__.py", line 64, in ?
>         from pygame.base import *
>     ImportError: Failure linking new module: : dyld:  
> /Users/skip/Library/Frameworks/Python.framework/Versions/2.4/ 
> Resources/Python.app/Contents/MacOS/Python Undefined symbols:
>      
> /Users/skip/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-packages/pygame/base.so undefined reference to  
> _PyArg_ParseTuple expected to be defined in the executable
>      
> /Users/skip/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-packages/pygame/base.so undefined reference to  
> _PyCObject_AsVoidPtr expected to be def
>
> I'm running OSX 10.2.8 on a PowerBook with a framework build of Python  
> based
> on Python CVS.
>
> Any clues?

Holy cow.  Please either use Python 2.3 or upgrade to OS X 10.3.  I  
can't really reproduce your current situation.

-bob




More information about the Pythonmac-SIG mailing list