Hi,
I'm having problems with python 2.4.4 built on a Celeron D. I had problems
earlier with that processor which I think has understands some 64 bit
instructions (whatever that means) but is still 32 bit. Thus when e.g. trying to
build numpy with the self built python I get that error:
Traceback (most recent call last):
File "setup.py", line 89, in ?
setup_package()
File "setup.py", line 59, in setup_package
from numpy.distutils.core import setup
File "/mnt/home/ck/prog/scipy/numpy-1.0.1/numpy/__init__.py", line 36, in ?
File "numpy/core/__init__.py", line 5, in ?
import multiarray
ImportError:
/media/hda6/home/ck/prog/scipy/numpy-1.0.1/numpy/core/multiarray.so: undefined
symbol: Py_InitModule4
which is related to 32<->64 issues, right?
So my question is how do I force python to be built with 32bit?
Christian 2 2284
On Mar 26, 10:48 pm, Christian <ckk...@hoc.netwrote:
Traceback (most recent call last):
File "setup.py", line 89, in ?
setup_package()
File "setup.py", line 59, in setup_package
from numpy.distutils.core import setup
File "/mnt/home/ck/prog/scipy/numpy-1.0.1/numpy/__init__.py", line 36, in ?
File "numpy/core/__init__.py", line 5, in ?
import multiarray
ImportError:
/media/hda6/home/ck/prog/scipy/numpy-1.0.1/numpy/core/multiarray.so: undefined
symbol: Py_InitModule4
which is related to 32<->64 issues, right?
<http://www.thescripts.com/forum/thread35987.html>
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.
Granted, I'm sure there are many ways to get said error, but that was
the most obvious from a five minute search.
Alternatively, if you haven't done so already, you may want to mail
the numpy-discussion list.
Chris Lasher wrote:
On Mar 26, 10:48 pm, Christian <ckk...@hoc.netwrote:
>Traceback (most recent call last): File "setup.py", line 89, in ? setup_package() File "setup.py", line 59, in setup_package from numpy.distutils.core import setup File "/mnt/home/ck/prog/scipy/numpy-1.0.1/numpy/__init__.py", line 36, in ? File "numpy/core/__init__.py", line 5, in ? import multiarray ImportError: /media/hda6/home/ck/prog/scipy/numpy-1.0.1/numpy/core/multiarray.so: undefined symbol: Py_InitModule4
which is related to 32<->64 issues, right?
<http://www.thescripts.com/forum/thread35987.html>
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." ( http://www.python.org/dev/peps/pep-0353/)
So as numpy's setup.py 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?
Christian This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Michele Simionato |
last post by:
I posted this few weeks ago (remember the C Sharp thread?) but it went
unnoticed on the large mass of posts, so let me retry. Here I get Python+
Psyco twice as fast as optimized C, so I would like...
|
by: AIM |
last post by:
Error in msvc in building inheritance.obj to build hello.pyd
Hello,
I am trying to build the boost 1.31.0 sample extension hello.cpp.
I can not compile the file inheritance.cpp because the two...
|
by: Jonathan Hilgeman |
last post by:
Currently, I have a Celeron 1.2 Ghz server with 512 RAM, and I'm considering
moving to a P4 2 Ghz with the same amount of RAM. I have a few specific
tables with several million rows of data, and it...
|
by: Marco |
last post by:
Is there anything better than using make for fairly large C++ projects?
Could be an open-source, free or inexpensive commercial tool. It needs
to easily integrate with a SCM tool.
I want to...
|
by: Mark |
last post by:
Am I out of my mind to consider buying a laptop with a Celeron processor,
512 MB of RAM, and running VS.NET? It's important to note that I have
another PC that I will use 85% of the time. But,...
|
by: Godzilla |
last post by:
Has anyone install Python on Windows XP Embedded? We wish to evaluate
the possible solution of installing Python with WinXPE on a PC/104 plus
module.
Thank you.
|
by: Akira Kitada |
last post by:
Hi list,
I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed
to build some of the modules.
"""
Failed to find the necessary bits to build these modules:
_bsddb ...
|
by: M.-A. Lemburg |
last post by:
On 2008-10-25 08:39, Akira Kitada wrote:
Please post a bug report on python.org about these failures.
The multiprocessing module is still fairly new and obviously needs
more fine tuning for...
|
by: Akira Kitada |
last post by:
Hi Marc-Andre,
Thanks for the suggestion.
I opened a ticket for this issue: http://bugs.python.org/issue4204
Now I understand the state of the multiprocessing module,
but it's too bad to see...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |