Re: [f2py] new env gives errors

moritz braun <[email protected]>
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
Dear Pavel

I am quite sure, that your problem will be solved if you upgrade to
numpy 1.3.0 since f2py from 1.2.0 was known not to work with python2.6
!

regards

Moritz
On Sat, Apr 25, 2009 at 3:39 AM, Pavel Aleynikov
<[email protected]> wrote:
> Hello,
> I have real trouble after switching to Ubuntu 9.04 from 8.10. At first I
> just performed dist-upgrade to 9.04 and all was still perfect. But after
> that I have decided that It's a long time gone since I installed clean
> system (What the hell was I thinking %)). To make long story short:
> Having:
> clean ubuntu and previously working like this Fortran project:
> f2py --fcompiler=intel -c Nbfeat-new1.f DRMT.f DRFD.f DRSP.f Feat1.f
> FWANDL.f ND_RUN.f ND_PASS.f metric.f -m fortgeom
>
> Now with clean ubuntu:
> sudo apt-get install python-qt4 python-numpy python-matplotlib python-tk
> python-scipy
> then install ifort: download l_cprof_p_11.0.083_ia32.tgz-> install
> (actually doesn't make any difference with gfortran as I found out)
> Now I get:
>
> f2py --fcompiler=intel -c Nbfeat-new1.f DRMT.f DRFD.f DRSP.f Feat1.f
> FWANDL.f ND_RUN.f ND_PASS.f metric.f -m fortgeom
> running build
> running config_cc
> unifing config_cc, config, build_clib, build_ext, build commands
> --compiler options
> running config_fc
> unifing config_fc, config, build_clib, build_ext, build commands
> --fcompiler options
> running build_src
> building extension "fortgeom" sources
> f2py options: []
> f2py:> /tmp/tmpVKCYrs/src.linux-i686-2.6/fortgeommodule.c
> creating /tmp/tmpVKCYrs
>
> .... see tmp.....
>
> /tmp/tmpkHTrQd/src.linux-i686-2.6/fortranobject.c:823: error:
> ‘PyArrayObject’ has no member named ‘nd’
> /tmp/tmpkHTrQd/src.linux-i686-2.6/fortranobject.c:826: error:
> ‘PyArrayObject’ has no member named ‘nd’
> /tmp/tmpkHTrQd/src.linux-i686-2.6/fortranobject.c:826: error:
> ‘PyArrayObject’ has no member named ‘dimensions’
> error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv
> -O2 -Wall -Wstrict-prototypes -fPIC -I/tmp/tmpkHTrQd/src.linux-i686-2.6
> -I/usr/lib/python2.6/dist-packages/numpy/core/include
> -I/usr/include/python2.6
> -c /tmp/tmpkHTrQd/src.linux-i686-2.6/fortranobject.c
> -o /tmp/tmpkHTrQd/tmp/tmpkHTrQd/src.linux-i686-2.6/fortranobject.o"
> failed with exit status 1
> make: *** [f2py] Error 1
>
> just compiling without wrapping is ok, wrapping with gfortran fail same.
> Any ideas? U8.10 has python 2.5, but after dist-upgrade I have python
> 2.6 I guess, and it still works.
>
> f2py tells:
>
> Version:     2_5972
> numpy Version: 1.2.1
>
> Python says:
> Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
> [GCC 4.3.3] on linux2
>
> So, I don't know what to do. I need help, this thing to be compiled and
> wrapped is very important for me.
>
> _______________________________________________
> f2py-users mailing list
> f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
> http://cens.ioc.ee/mailman/listinfo/f2py-users
>
>



-- 
Prof M Braun		 Tel.:27-12-4298006/8027
Physics Department  Fax.: 27-12-4293643
University of South Africa (UNISA)	
[email protected]
P.O. Box 392 	
0003
UNISA
 South Africa
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.