build python on Celeron D

Christian ckkart at
Tue Mar 27 07:26:48 CEST 2007

Chris Lasher wrote:
> On Mar 26, 10:48 pm, Christian <ckk... at> wrote:
>> Traceback (most recent call last):
>>   File "", line 89, in ?
>>     setup_package()
>>   File "", line 59, in setup_package
>>     from numpy.distutils.core import setup
>>   File "/mnt/home/ck/prog/scipy/numpy-1.0.1/numpy/", line 36, in ?
>>   File "numpy/core/", line 5, in ?
>>     import multiarray
>> ImportError:
>> /media/hda6/home/ck/prog/scipy/numpy-1.0.1/numpy/core/ undefined
>> symbol: Py_InitModule4
>> which is related to 32<->64 issues, right?
> <>
> Do you have more than one Python installation on this machine? The
> link above indicates that if you build NumPy with a different build of
> Python than you will run it from, you will get this same error.

Yes, but I took care to not confuse them.

> Granted, I'm sure there are many ways to get said error, but that was
> the most obvious from a five minute search.

I found that:

"To prevent loading extension modules that assume a 32-bit size type into an
interpreter that has a 64-bit size type, Py_InitModule4 is renamed to
Py_InitModule4_64." (

So as numpy's cannot call 'Py_InitModule4' this means, that the
interpreter is built for 64bit systems. Maybe numpy is more accurate in testing
wether it run's on 64 or on 32 bit than the python build script itself and
therefore expect's Py_InitModule4 to be present.

Isn't there perhaps a configure option to force 32 bit?


More information about the Python-list mailing list