Hi everybody

I've succesfully built Numpy-1.0b4 on HP-UX 11.11 with
all tests passed succesfully (gcc 4.1.1) on Python 2.4.2

I try to import 2 basic Fortran modules compiled with numpy/f2py
(fcompiler = gfortran (gcc 4.1.1))

The modules hello1 and hello2 are almost identical:

C File hello1.f
      subroutine foo1 (a)
      integer a
      print*, "Hello from Fortran(foo1)!"
      print*, "a=",a
      end

C File hello2.f
      subroutine foo2 (a)
      integer a
      print*, "Hello from Fortran(foo2)!"
      print*, "a=",a
      end

Then run:  python -c 'import hello1; import hello2' which
ends with a beautifull segfault !
I also tried the old f2py version (based on Numeric) and everything
goes well
Note that the importation of only ONE f2py module is OK.

Investigating a little bit further, I deleted the call to import_array()
in "hello1module.c" and "hello2module.c" and the segfault dissapear ...
It turns out that something goes wrong this the importation of "numpy.core.multiarray"
on my system.
The same thing happends if I import multiarray by hand in the Python session:
>>> import numpy.core.multiarray
>>> import hello1   (with import_array() deleted)
>>> import hello2   (with import_array() deleted)
---> segfault

Unfortunately thats prevents me from using Scipy because modules based on Fortran
and compiled with numpy/f2py during the building phase also segfault.

If anyone has some help, I will greatly appreciate
Thanks
Christophe

--

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to