[SciPy-user] strange scipy.f2py error

Chris Fonnesbeck fonnesbeck at gmail.com
Thu Dec 1 13:53:05 CST 2005


For some reason, the fcompiler object gets set to "None" when building
on a 10.3 machine. Using today's svn build of scipy_core and the IBM
XLF compiler:

compiling Fortran sources
Traceback (most recent call last):
  File "setup.py", line 17, in ?
    ext_modules = [flib]
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/distutils/core.py",
line 91, in setup
    return old_setup(**new_attr)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/core.py",
line 149, in setup
    dist.run_commands()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py",
line 946, in run_commands
    self.run_command(cmd)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py",
line 966, in run_command
    cmd_obj.run()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/command/build.py",
line 112, in run
    self.run_command(cmd_name)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/cmd.py",
line 333, in run_command
    self.distribution.run_command(command)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py",
line 966, in run_command
    cmd_obj.run()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/distutils/command/build_ext.py",
line 107, in run
    self.build_extensions()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/command/build_ext.py",
line 405, in build_extensions
    self.build_extension(ext)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/distutils/command/build_ext.py",
line 246, in build_extension
    f_objects += self.fcompiler.compile(f_sources,
AttributeError: 'NoneType' object has no attribute 'compile'

--
Chris Fonnesbeck
Atlanta, GA



More information about the SciPy-user mailing list