Installing PyGame?

Neil Hodgson nhodgson at iinet.net.au
Sat Jun 8 18:51:40 EDT 2013


Eam onn:

> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so, 2): no suitable image found.  Did find:
> 	/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so: no matching architecture in universal wrapper

    This is saying that the version of Python you are using is a 
different architecture to the installed pygame library. This could be 
because you are using a 64-bit version of Python with a 32-bit library 
or vice-versa. Or you have a PowerPC library and Python is compiled for 
Intel processors.

    In Terminal, you can find the architecture of files with "otool -vh" 
followed by the file name. So try (on one line)

otool -vh 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so

    And the same with Python, first finding where Python is with
whereis python

    Then post all of the output text, not just your interpretation.

    Neil




More information about the Python-list mailing list