473,781 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

build python on Celeron D

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

Mar 27 '07 #1
2 2305
On Mar 26, 10:48 pm, Christian <ckk...@hoc.net wrote:
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.htm l>

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.

Mar 27 '07 #2
Chris Lasher wrote:
On Mar 26, 10:48 pm, Christian <ckk...@hoc.net wrote:
>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.htm l>

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

Mar 27 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
4881
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 to now if something is wrong on my old laptop and if anybody can reproduce my results. Here are I my numbers for calling the error function a million times (Python 2.3, Psyco 1.0, Red Hat Linux 7.3, Pentium II 366 MHz): $ time p23 erf.py real ...
2
4382
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 files containing some templates: adjacency_list.hpp and mem_fn.hpp can not compile. Does anyone have any solutions?
0
1627
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 takes quite a long time to process that data on my current server. Does anyone have a good idea of the type of performance increase I'd see if I moved to a P4 server? I'm hoping to see a response like, "Oh yeah - I moved to a P4 from a Celeron...
6
1708
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 hear from experienced users. thanks in advance Marco
1
1844
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, I'd like to occassionally work on projects using the laptop, and perhaps use it at a client's office for a day or two of work occassionally. I won't the laptop for games, or images, etc, so the only time I'm really going to be "working" this...
3
3077
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.
0
2458
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 _sqlite3 _tkinter gdbm linuxaudiodev spwd sunaudiodev
0
1531
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 the large set of platforms on which Python can run. However, please also note that FreeBSD4 is a rather old version of that OS. FWIW: Python 2.6 compiles just fine on FreeBSD6. Thanks.
0
1955
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 math, mmap and readline modules, that worked fine before, cannot be built anymore.
0
10308
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10143
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9939
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8964
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6729
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5507
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4040
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2870
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.