[Tutor] Best tool for programming interactive games in Python
Oscar Benjamin
oscar.j.benjamin at gmail.com
Tue Mar 29 14:35:00 EDT 2016
On 29 Mar 2016 21:19, "Bob Gailer" <bgailer at gmail.com> wrote:
>
> On Mar 29, 2016 2:03 PM, "Lisa Hasler Waters" <lwaters at flinthill.org>
wrote:
> >
> > I continually get this error:
> >
> >
> > Traceback (most recent call last):
> > File "/Users/lwaters/Desktop/pygameTest.py", line 1, in <module>
> > import pygame, sys
> > 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 assume you are running python 2.7 . true?
> What operating system?
> How did you install pygame?
> First guess uninstall and reinstall a game.
> Any other information you can give us may help
Just guessing here but the error suggests a mismatch between 32 and 64 bit
binaries. Is it possible that you have installed 32 bit Python and 64 bit
pygame or vice-versa?
(I'm not an OSX user but I think that's what the error can mean.)
--
Oscar
More information about the Tutor
mailing list