[SciPy-user] Problem installing Core on OS X

Joshua L. Adelman jadelman at OCF.Berkeley.EDU
Wed Dec 7 18:18:47 CST 2005


After successfully installing Scipy on my G5 Powermac Workstation,  
I'm attempting to do the same for my G4 powerbook. I used the  
instructions for getting the core and scipy from SVN (from "Building  
Scipy for Mac OSX") and got the following output when using the command:

cd core
python setup.py build

OUTPUT:

Traceback (most recent call last):
   File "setup.py", line 42, in ?
     setup_package()
   File "setup.py", line 7, in setup_package
     from scipy.distutils.core import setup
ImportError: No module named scipy.distutils.core
c-69-181-149-4:~/Desktop/scipy-0.4.3 lev$ cd ~/Desktop/
c-69-181-149-4:~/Desktop lev$ cd core/
c-69-181-149-4:~/Desktop/core lev$ python setup.py build
Running from scipy core source directory.
Assuming default configuration (scipy/distutils/command/ 
{setup_command,setup}.py was not found)
Appending scipy.distutils.command configuration to scipy.distutils
Assuming default configuration (scipy/distutils/fcompiler/ 
{setup_fcompiler,setup}.py was not found)
Appending scipy.distutils.fcompiler configuration to scipy.distutils
Appending scipy.distutils configuration to scipy
Appending scipy.weave configuration to scipy
Assuming default configuration (scipy/test/{setup_test,setup}.py was  
not found)
Appending scipy.test configuration to scipy
No module named __svn_version__
Creating scipy/f2py/__svn_version__.py (version='1597')
F2PY Version 2_1597
Appending scipy.f2py configuration to scipy
Creating scipy/base/__svn_version__.py (version='1597')
Appending scipy.base configuration to scipy
blas_opt_info:
   FOUND:
     extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
     define_macros = [('NO_ATLAS_INFO', 3)]
     extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/ 
vecLib.framework/Headers']

lapack_opt_info:
   FOUND:
     extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
     define_macros = [('NO_ATLAS_INFO', 3)]
     extra_compile_args = ['-faltivec']

Appending scipy.lib configuration to scipy
Appending scipy.basic configuration to scipy
Appending scipy configuration to
Inheriting attribute 'version' from '?'
scipy_core version 0.8.1.1597
running build
running config_fc
running build_src
building extension "scipy.distutils.__config__" sources
   adding 'build/src/scipy/distutils/scipy/distutils/__config__.py'  
to sources.
building extension "scipy.base.multiarray" sources
Generating build/src/scipy/base/config.h
customize NAGFCompiler
customize AbsoftFCompiler
customize IbmFCompiler
Could not locate executable f95
customize GnuFCompiler
customize GnuFCompiler
customize GnuFCompiler using config
gcc options: '-fno-strict-aliasing -Wno-long-double -no-cpp-precomp - 
mno-fused-madd -fPIC -fno-common -dynamic -DNDEBUG -g -O3 -Wall - 
Wstrict-prototypes'
compile options: '-I/Library/Frameworks/Python.framework/Versions/2.4/ 
include/python2.4 -Iscipy/base/src -I/Library/Frameworks/ 
Python.framework/Versions/2.4/include/python2.4 -c'
gcc: _configtest.c
gcc: unrecognized option '-no-cpp-precomp'
cc1: error: unrecognized command line option "-Wno-long-double"
gcc: unrecognized option '-no-cpp-precomp'
cc1: error: unrecognized command line option "-Wno-long-double"
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
   File "setup.py", line 38, in ?
     setup_package()
   File "setup.py", line 31, in setup_package
     setup( **config.todict() )
   File "/Users/lev/Desktop/core/scipy/distutils/core.py", line 93,  
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 "/Users/lev/Desktop/core/scipy/distutils/command/ 
build_src.py", line 86, in run
     self.build_sources()
   File "/Users/lev/Desktop/core/scipy/distutils/command/ 
build_src.py", line 99, in build_sources
     self.build_extension_sources(ext)
   File "/Users/lev/Desktop/core/scipy/distutils/command/ 
build_src.py", line 143, in build_extension_sources
     sources = self.generate_sources(sources, ext)
   File "/Users/lev/Desktop/core/scipy/distutils/command/ 
build_src.py", line 199, in generate_sources
     source = func(extension, build_dir)
   File "scipy/base/setup.py", line 36, in generate_config_h
     raise "ERROR: Failed to test configuration"
ERROR: Failed to test configuration
removed scipy/base/__svn_version__.py
removed scipy/base/__svn_version__.pyc
removed scipy/f2py/__svn_version__.py
removed scipy/f2py/__svn_version__.pyc



More information about the SciPy-user mailing list