[Numpy-discussion] NumPy installed but aborted when do import

Gerard Vermeulen gerard.vermeulen at grenoble.cnrs.fr
Tue Jan 31 02:53:04 CST 2006


On Tue, 31 Jan 2006 21:32:14 +1100
Lito Kusnadi <lito.kusnadi at gmail.com> wrote:

> Hi, I'm running RHEL 4.0 2.6.9-5.EL with Python 2.3.4.
> I managed to compile NumPy from src.rpm and make an i386 rpm from it.
> Version of NumPy is numpy-0.9.4-1.
> When I run Python interactive line and try to import NumPy, it aborts and
> kicks me to the command prompt.
> The following error is generated:
> 
> Python 2.3.4 (#1, Nov  4 2004, 14:06:56)
> [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from numpy import *
> import core -> failed:
> /usr/lib/python2.3/site-packages/numpy/core/multiarray.so: undefined symbol:
> PyOS_ascii_strtod
> import random -> failed: 'module' object has no attribute 'dtype'
> import lib -> failed:
> /usr/lib/python2.3/site-packages/numpy/core/multiarray.so: undefined symbol:
> PyOS_ascii_strtod
> Fatal Python error: can't initialize module lapack_lite
> Aborted
> 
> Anyone knows what  package I am missing?
> 

There is a patch for Python-2.3 (PyOS_ascii_strtod does not exist in Python-2.3):
http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103

Look for:
patch-for-py2.3

Gerard





More information about the Numpy-discussion mailing list