Python module import error

Joined
Dec 31, 2011
Messages
1
Reaction score
0
Points
1
Hello all.

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:

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 when running "
help ('modules')
"

but when i try to import the module i receive the following:

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

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top