[Numpy-discussion] f2py unrecognized vendors

Brandt Belson bbelson@princeton....
Tue Jun 1 11:00:12 CDT 2010

I'm not sure if f2py questions are appropriate here, but I have a question.
I had been using f2py without problems, but recently it stopped working.
It's worth mentioning that I'm working remotely on a cluster, and I don't
have root access, so it's possible that the system admins changed something
without my knowledge. Also, this version of python, numpy, and f2py are
installed locally on a drive that is sometimes purged. Unfortunately I had
no other way to install things. I use f2py with intel's ifort, and the
following compile command used to work.

$WORK/local/bin/f2py -c -m readBlaFortran readBlaFortran.f putxyp.f rdiscr.f

However, now it gives the following messages:
Unknown vendor: "intelem"
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler
running build_src
building extension "readBlaFortran" sources
f2py options: []
f2py:> /tmp/tmpRerO2Q/src.linux-x86_64-2.6/readBlaFortranmodule.c
creating /tmp/tmpRerO2Q
creating /tmp/tmpRerO2Q/src.linux-x86_64-2.6
Reading fortran codes...
Reading file 'readBlaFortran.f' (format:fix,strict)
Reading file 'par.f' (format:fix,strict)
 Reading file 'putxyp.f' (format:fix,strict)
Reading file 'par.f' (format:fix,strict)
Reading file 'rdiscr.f' (format:fix,strict)
 Reading file 'par.f' (format:fix,strict)
Block: readBlaFortran
Block: readbla
 Block: putxyp
Block: rdiscr
Post-processing (stage 2)...
Building modules...
Building module "readBlaFortran"...
 Constructing wrapper function "readbla"...
  ur,re,xl,zl,t,xs,dstar,fltype,bparams = readbla(blafile,m,header)
 Constructing wrapper function "putxyp"...
Constructing wrapper function "rdiscr"...
Wrote C/API module "readBlaFortran" to file
  adding '/tmp/tmpRerO2Q/src.linux-x86_64-2.6/fortranobject.c' to sources.
  adding '/tmp/tmpRerO2Q/src.linux-x86_64-2.6' to include_dirs.
-> /tmp/tmpRerO2Q/src.linux-x86_64-2.6
-> /tmp/tmpRerO2Q/src.linux-x86_64-2.6
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
don't know how to compile Fortran code on platform 'posix' with 'intelem'
compiler. Supported compilers are: )
warning: build_ext: f77_compiler=intelem is not available.
building 'readBlaFortran' extension
error: extension 'readBlaFortran' has Fortran sources but no Fortran
compiler found

It seems that it's not recognizing any fortran compilers. I've tried
specifying the path to ifort and changing the vendor name to intel and
ifort, but none changed the result. Does anyone know a possible cause for
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100601/24d8431b/attachment-0001.html 

More information about the NumPy-Discussion mailing list