[Numpy-discussion] Bug in numpy.distutils

Brian Granger ellisonbg.net@gmail....
Wed Mar 7 13:16:30 CST 2007


Hi,

I am building numpy on a bunch of different systems right now and for
the most part I am always successful.  Today though, I found a wierd
problem.  Here is the traceback from doing python setup.py (below):

This is on an intel 10.4 box with no fortran compiler installed.
Incidently, after googling around, I did find that someone else has
seen this before - looks like they didn't report it.

http://sage.math.washington.edu:9002/sage_trac/query?status=new&status=assigned&status=reopened&format=rss&order=id

I have a hack that covers this up, but I figured it would be better to
really understand what is going on.  Any ideas?

Brian


running install
running build
running config_fc
running build_src
building py_modules sources
creating build
creating build/src.macosx-10.3-i386-2.5
creating build/src.macosx-10.3-i386-2.5/numpy
creating build/src.macosx-10.3-i386-2.5/numpy/distutils
building extension "numpy.core.multiarray" sources
creating build/src.macosx-10.3-i386-2.5/numpy/core
Generating build/src.macosx-10.3-i386-2.5/numpy/core/config.h
customize NAGFCompiler
'linker_exe'
customize AbsoftFCompiler
'linker_exe'
customize IbmFCompiler
'linker_exe'
Could not locate executable g77
Could not locate executable f77
Could not locate executable gfortran
Could not locate executable f95
customize GnuFCompiler
customize Gnu95FCompiler
customize G95FCompiler
'linker_exe'
customize GnuFCompiler
customize Gnu95FCompiler
customize NAGFCompiler
Traceback (most recent call last):
  File "setup.py", line 89, in <module>
    setup_package()
  File "setup.py", line 82, in setup_package
    configuration=configuration )
  File "/Users/foo/build/numpy-20070205/numpy/distutils/core.py", line
174, in setup
    return old_setup(**new_attr)
  File "/Users/foo/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py",
line 151, in setup
    dist.run_commands()
  File "/Users/foo/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 974, in run_commands
    self.run_command(cmd)
  File "/Users/foo/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
    cmd_obj.run()
  File "/Users/foo/build/numpy-20070205/numpy/distutils/command/install.py",
line 16, in run
    r = old_install.run(self)
  File "/Users/foo/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/install.py",
line 506, in run
    self.run_command('build')
  File "/Users/foo/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py",
line 333, in run_command
    self.distribution.run_command(command)
  File "/Users/foo/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
    cmd_obj.run()
  File "/Users/foo/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build.py",
line 112, in run
    self.run_command(cmd_name)
  File "/Users/foo/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py",
line 333, in run_command
    self.distribution.run_command(command)
  File "/Users/foo/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
    cmd_obj.run()
  File "/Users/foo/build/numpy-20070205/numpy/distutils/command/build_src.py",
line 87, in run
    self.build_sources()
  File "/Users/foo/build/numpy-20070205/numpy/distutils/command/build_src.py",
line 106, in build_sources
    self.build_extension_sources(ext)
  File "/Users/foo/build/numpy-20070205/numpy/distutils/command/build_src.py",
line 212, in build_extension_sources
    sources = self.generate_sources(sources, ext)
  File "/Users/foo/build/numpy-20070205/numpy/distutils/command/build_src.py",
line 270, in generate_sources
    source = func(extension, build_dir)
  File "numpy/core/setup.py", line 46, in generate_config_h
    library_dirs = default_lib_dirs)
  File "/Users/foo/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/config.py",
line 278, in try_run
    self._check_compiler()
  File "/Users/foo/build/numpy-20070205/numpy/distutils/command/config.py",
line 39, in _check_compiler
    self.fcompiler.customize(self.distribution)
  File "/Users/foo/build/numpy-20070205/numpy/distutils/fcompiler/__init__.py",
line 345, in customize
    linker_exe_flags = self.__get_flags(self.get_flags_linker_exe,'LDFLAGS')
  File "/Users/foo/build/numpy-20070205/numpy/distutils/fcompiler/__init__.py",
line 527, in __get_flags
    var = command()
  File "/Users/foo/build/numpy-20070205/numpy/distutils/fcompiler/__init__.py",
line 204, in get_flags_linker_exe
    if self.executables['linker_exe']:
KeyError: 'linker_exe'


More information about the Numpy-discussion mailing list