I have been attempting to install the pygame module on my macbook pro running snow leapord. the python version i am running on is 3.2
I have been following instructions from here in order to build and install the module from source. when running the build i get the following warning many times:
Quote:
file was built for i386 which is not the architecture being linked (x86_64)
when running the python IDLE i am able see the pygame module listed as on of the available modules
but when i try to import the module i receive the following:
Quote:
import pygame Traceback (most recent call last): File "", line 1, in import pygame File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/pygame/init.py", line 95, in from pygame.base import * ImportError: dynamic module does not define init function (PyInit_base)
I am assuming that this is some sort of linking issue but i do not know how to approach solving it... would very much appreciate any thought as i do not have any programming bg whatsoever.
I just tried Michael's answer out but received the following (new) error:
import pygame Traceback (most recent call last): File "", line 1, in import pygame File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/pygame/init.py", line 95, in from pygame.base import * ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/pygame/base.so, 2): Symbol not found: _PyCObject_AsVoidPtr Referenced from: /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/pygame/base.so Expected in: flat namespace in /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/pygame/base.so
any ideas?