[Tutor] pygame doesn't work

Benjamin Fishbein bfishbein79 at gmail.com
Thu Dec 12 04:04:51 CET 2013


Hello. I'm using Python 2.7.6 on Mac OSX. I try importing pygame and get this:

>>> import pygame

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import pygame
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/__init__.py", line 95, in <module>
    from pygame.base import *
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


I've looked online to try to solve this. Apparently it's a 32-bit/64-bit issue, but nothing has shown me how to fix the problem. Any help would be greatly appreciated.

Ben



More information about the Tutor mailing list