Re: [f2py] new env gives errors
Pavel Aleynikov <[email protected]>
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <1240739609.9199.0.camel@alpxp-laptop> |
Thanks! That was the clue! Works perfect. On Sat, 2009-04-25 at 00:25 -0700, Kevin Mitchell wrote: > I believe the problem is > "/tmpVKCYrs/src.linux-i686-2.6/fortranobject.h:7:20: error: Python.h: > No such file or directory" > > You need the python headers to wrap python modules. > > # sudo aptitude install python-dev > > Kevin > > On Fri, Apr 24, 2009 at 6:39 PM, 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 > > > > > > _______________________________________________ > f2py-users mailing list > f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] > http://cens.ioc.ee/mailman/listinfo/f2py-users