[Numpy-discussion] f2py and Fortran90 gfortran_filename error

Tyler Hayes hayes.tyler@gmail....
Wed Feb 28 09:00:13 CST 2007


Thanks for helping out Pearu,

But it won't even create the .so file using that command. Using what
you suggested, seems to work as it goes through many of the processes
but then f2py stops at:

error: don't know how to compile Fortran code on platform 'posix' with
'gnu95' compiler. Supported compilers are:
compaq,absoft,intel,gnu,sun,f,vast,ibm,lahey,intelv,intele,pg,compaqv,mips,hpux,intelev,nag)

Even more weird is on my laptop the situation is even worse. Check out
this error which I seem to get regardless of whether I use the gnu95
line like you suggested on the --f90exec option.

thayes@seneca:~/fortran90/am562b/misc_finite$ f2py -c
--fcompiler=gnu95 matsolve2.pyf matsolve.f90
Unknown vendor: "gnu95"
numpy_info:
  FOUND:
    define_macros = [('NUMERIC_VERSION', '"\\"24.2\\""')]
    include_dirs = ['/usr/include/python2.4']

Traceback (most recent call last):
  File "/usr/bin/f2py", line 4, in ?
    f2py2e.main()
  File "/usr/lib/python2.4/site-packages/f2py2e/f2py2e.py", line 677, in main
    run_compile()
  File "/usr/lib/python2.4/site-packages/f2py2e/f2py2e.py", line 650,
in run_compile
    ext = Extension(**ext_args)
  File "/usr/lib/python2.4/site-packages/scipy_distutils/extension.py",
line 45, in __init__
    export_symbols)
  File "/usr/lib/python2.4/distutils/extension.py", line 106, in __init__
    assert type(name) is StringType, "'name' must be a string"
AssertionError: 'name' must be a string

Thanks for the help anyways.

Cheers,

t.

-- 
Tyler Joseph Hayes

GPG Key ID# 0x3AE05130


More information about the Numpy-discussion mailing list