[Numpy-discussion] f2py and Fortran90 gfortran_filename error

Tyler Hayes hayes.tyler at gmail.com
Wed Feb 28 12:27:39 EST 2007


Well, I removed the f2py2e directory and reinstalled numpy as you
suggested. Now, I still use the -lgfortran option and the --f90exec
option, but am no longer getting the "NUMERIC" version.

Thank you for the help. You have been more than patient with me :-)

Now all I have to do is get my laptop to also behave the same way.
f2py creates the .pyf file fine, but balks at the following command.




thayes at seneca$ f2py -c --f90exec=/usr/bin/gfortran matsolve2.pyf
-lgfortran matsolve.f90

/usr/lib/python2.4/site-packages/numpy/ctypeslib.py:12: UserWarning:
All features of ctypes interface may not work with ctypes < 1.0.1
  warnings.warn("All features of ctypes interface may not work with " \
Traceback (most recent call last):
  File "/usr/bin/f2py", line 26, in ?
    main()
  File "/usr/lib/python2.4/site-packages/numpy/f2py/f2py2e.py", line
552, in main
    run_compile()
  File "/usr/lib/python2.4/site-packages/numpy/f2py/f2py2e.py", line
528, in run_compile
    ext = Extension(**ext_args)
  File "/usr/lib/python2.4/site-packages/numpy/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





However, I can save this for another day.....

Thanks again,

Tyler


-- 
Tyler Joseph Hayes
GPG Key ID# 0x3AE05130



More information about the NumPy-Discussion mailing list