[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Pygame import error on OSX 10.8.2



I've installed Python 3.4 and the Lion installer for Pygame >
pygame-1.9.2pre-py2.7-macosx10.7.mpkg.zip. When I ran the installer for
pygame it stuffed it in the sitepackages folder for 2.7 the default
directory of Python on the Mac. When installing 3.4 the install is in
Frameworks folder, this doesnt help things really but that seems to be the
way things are. Anyway, so I grabbed the pygame stuff out of 2.7 site
packages and dumped them into Frameworks/Python3.4 site packages folder.

Running Python3.4 from Terminal seems to be fine but trying to import pygame
I get this error...

~ jeremy$ python3.4-32
Python 3.4.0a2 (v3.4.0a2:9265a2168e2c, Sep  7 2013, 10:55:34) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pygame/__init__.py",
line 95, in <module>
    from pygame.base import *
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pygame/base.so,
2): Symbol not found: _PyInt_AsLong
  Referenced from:
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pygame/base.so
  Expected in: flat namespace
 in
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pygame/base.so
>>> 


Anyone had this experience before with results? I also tried running
python3.4-32 in 32 bit but still no go.




--
View this message in context: http://pygame-users.25799.x6.nabble.com/Pygame-import-error-on-OSX-10-8-2-tp873.html
Sent from the pygame-users mailing list archive at Nabble.com.