RC2 - f2py no workee

Mathew Yeates myeates at jpl.nasa.gov
Wed Oct 11 18:24:54 CDT 2006


I'm running the following
python c:\Python24\Scripts\f2py.py  --fcompiler=absoft -c foo.pyf  foo.f

and it seems that the compiler info isn't being passed down. When 
distutils tries to compile I get the error

---------------------------------------------------
  File 
"C:\Python24\Lib\site-packages\numpy\distutils\command\build_ext.py", li
e 260, in build_extension
    f_objects += self.fcompiler.compile(f_sources,
AttributeError: 'NoneType' object has no attribute 'compile'
------------------------------------------------

so the fcompiler isn't being set. Any help?
Mathew

Here is the complete stack trace
Traceback (most recent call last):
  File "c:\Python24\Scripts\f2py.py", line 26, in ?
    main()
  File "C:\Python24\Lib\site-packages\numpy\f2py\f2py2e.py", line 552, 
in main
    run_compile()
  File "C:\Python24\Lib\site-packages\numpy\f2py\f2py2e.py", line 539, 
in run_co
mpile
    setup(ext_modules = [ext])
  File "C:\Python24\Lib\site-packages\numpy\distutils\core.py", line 
174, in set
up
    return old_setup(**new_attr)
  File "C:\Python24\lib\distutils\core.py", line 149, in setup
    dist.run_commands()
  File "C:\Python24\lib\distutils\dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "C:\Python24\lib\distutils\dist.py", line 966, in run_command
    cmd_obj.run()
  File "C:\Python24\lib\distutils\command\build.py", line 112, in run
    self.run_command(cmd_name)
  File "C:\Python24\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Python24\lib\distutils\dist.py", line 966, in run_command
    cmd_obj.run()
  File 
"C:\Python24\Lib\site-packages\numpy\distutils\command\build_ext.py", lin
e 121, in run
    self.build_extensions()
  File "C:\Python24\lib\distutils\command\build_ext.py", line 405, in 
build_exte
nsions
    self.build_extension(ext)
  File 
"C:\Python24\Lib\site-packages\numpy\distutils\command\build_ext.py", lin
e 260, in build_extension
    f_objects += self.fcompiler.compile(f_sources,
AttributeError: 'NoneType' object has no attribute 'compile'




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the Numpy-discussion mailing list