[SciPy-dev] AttributeError: GnuFCompiler instance has no attribute 'compiler_so'

Pearu Peterson pearu at scipy.org
Tue May 17 02:15:33 CDT 2005



On Tue, 17 May 2005, Nils Wagner wrote:

> Hi all,
>
> I tried to install scipy from scratch.
>
> python setup.py build failed
>
> ...
> compiling Fortran sources
> Traceback (most recent call last):
> File "setup.py", line 124, in ?
>   setup_package(ignore_packages)
> File "setup.py", line 112, in setup_package
>   url = "http://www.scipy.org",
> File "/var/tmp/cvs/scipy/scipy_core/scipy_distutils/core.py", line 73, in 
> setup
>   return old_setup(**new_attr)
> File "/usr/local/lib/python2.4/distutils/core.py", line 149, in setup
>   dist.run_commands()
> File "/usr/local/lib/python2.4/distutils/dist.py", line 946, in run_commands
>   self.run_command(cmd)
> File "/usr/local/lib/python2.4/distutils/dist.py", line 966, in run_command
>   cmd_obj.run()
> File "/usr/local/lib/python2.4/distutils/command/build.py", line 112, in run
>   self.run_command(cmd_name)
> File "/usr/local/lib/python2.4/distutils/cmd.py", line 333, in run_command
>   self.distribution.run_command(command)
> File "/usr/local/lib/python2.4/distutils/dist.py", line 966, in run_command
>   cmd_obj.run()
> File "/var/tmp/cvs/scipy/scipy_core/scipy_distutils/command/build_clib.py", 
> line 115, in run
>   self.build_libraries(self.libraries)
> File "/var/tmp/cvs/scipy/scipy_core/scipy_distutils/command/build_clib.py", 
> line 218, in build_libraries
>   extra_postargs=[])
> File "/usr/local/lib/python2.4/site-packages/scipy/distutils/ccompiler.py", 
> line 81, in CCompiler_compile
>   ccomp = self.compiler_so
> AttributeError: GnuFCompiler instance has no attribute 'compiler_so'

You seem to have scipy.base (Numeric3) in your system. Removing scipy.base 
should fix the error, so do

   rm -rf /usr/local/lib/python2.4/site-packages/scipy

before building scipy.

Pearu




More information about the Scipy-dev mailing list