[Pythonmac-SIG] Attempted SciPy 0.3.2 build on MacOS X

W.T. Bridgman wtbridgman at radix.net
Fri Oct 15 05:17:00 CEST 2004


Hello,

I've made half-hearted attempts to install SciPy (v0.3) under OS X but  
was concerned because it was unclear from the instructions whether the  
test failures under scipy.stats module impacted the results from that  
particular module.

Anyway, when 0.3.2 was released with the claim that the tests pass on  
OS X, I decided to give it a try using Chris Fonnesbeck's instructions  
as a guide.   A few things I found:

1) The changes to setup.py don't seem to apply in this release.  I had  
to remove ./Lib/sparse.

2) The build failed with a somewhat strange error message from the  
config.h file apparently created with xplt.  Since xplt/ was reported  
as revised for the Mac, I opted to remove ./Lib/xplt as well.

3) The build seemed to run to completion, so I ran the tests.  Some of  
the messages were really cryptic as to whether the test was successful,  
but the run finally failed with:

.Testing weibull_max
.Testing weibull_min
.........
======================================================================
ERROR: check_simple_todense  
(scipy.io.mmio.test_mmio.test_mmio_coordinate)
----------------------------------------------------------------------
Traceback (most recent call last):
   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/site-packages/scipy/io/tests/test_mmio.py", line 152, in  
check_simple_todense
     b = mmread(fn).todense()
AttributeError: todense

----------------------------------------------------------------------
Ran 946 tests in 5.006s

FAILED (errors=1)
<unittest.TextTestRunner object at 0x2acbe30>
 >>>
------------------------------------------------------------------------ 
--------------------------
Some investigation suggested this error might be related to my removal  
of xplt.  I'll play with the tutorial to test more components of the  
build.

As for my build, I'm on MacOS 10.3.5 and XCode v1.5.  All versions  
except SciPy as you describe on your instructions (FFTW 2.1.5).  Below  
is some troubleshooting output suggested in INSTALL.txt.

Thanks for any and all assistance,
Tom
------------------------------------------------------------------------ 
---------------------------
Planck:~ bridgman$ python -c 'from f2py2e.diagnose import run;run()'
------
os.name='posix'
------
sys.platform='darwin'
------
sys.version:
2.3 (#1, Sep 13 2003, 00:49:11)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)]
------
sys.prefix:
/System/Library/Frameworks/Python.framework/Versions/2.3
------
sys.path='/Users/bridgman:/System/Library/Frameworks/Python.framework/ 
Versions/2.3/lib/python23.zip:/System/Library/Frameworks/ 
Python.framework/Versions/2.3/lib/python2.3:/System/Library/Frameworks/ 
Python.framework/Versions/2.3/lib/python2.3/plat-darwin:/System/ 
Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat- 
mac:/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/plat-mac/lib-scriptpackages:/System/Library/Frameworks/ 
Python.framework/Versions/2.3/lib/python2.3/lib-tk:/System/Library/ 
Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload:/ 
System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
site-packages:/System/Library/Frameworks/Python.framework/Versions/2.3/ 
lib/python2.3/site-packages/HTMLgen:/System/Library/Frameworks/ 
Python.framework/Versions/2.3/lib/python2.3/site-packages/Numeric:/ 
System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
site-packages/PIL:/System/Library/Frameworks/Python.framework/Versions/ 
2.3/lib/python2.3/site-packages/PyObjC:/System/Library/Frameworks/ 
Python.framework/Versions/2.3/lib/python2.3/site-packages/vtk_python'
------
Found Numeric version '23.1' in  
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
site-packages/Numeric/Numeric.pyc
Found numarray version '1.1' in  
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
site-packages/numarray/__init__.pyc
Found f2py2e version '2.39.235_1693' in  
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
site-packages/f2py2e/f2py2e.pyc
Found scipy_distutils version '0.3.2' in  
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/site-packages/scipy_distutils/__init__.pyc'
------
Importing scipy_distutils.command.build_flib ... error: No module named  
build_flib
------
Checking availability of supported Fortran compilers:
error: local variable 'build_flib' referenced before assignment
------
Importing scipy_distutils.fcompiler ... ok
------
Checking availability of supported Fortran compilers:
customize CompaqFCompiler
customize AbsoftFCompiler
Could not locate executable ifort
Could not locate executable ifc
Could not locate executable efort
Could not locate executable efc
Could not locate executable ifort
customize IntelFCompiler
Could not locate executable f77
customize GnuFCompiler
customize SunFCompiler
customize VastFCompiler
customize IbmFCompiler
customize LaheyFCompiler
customize IntelVisualFCompiler
customize IntelItaniumFCompiler
customize PGroupFCompiler
customize CompaqVisualFCompiler
customize MipsFCompiler
customize HPUXFCompiler
customize IntelItaniumVisualFCompiler
customize NAGFCompiler
List of available Fortran compilers:
   --fcompiler=gnu  GNU Fortran Compiler (3.4.0)
List of unavailable Fortran compilers:
   --fcompiler=absoft   Absoft Corp Fortran Compiler
   --fcompiler=compaq   Compaq Fortran Compiler
   --fcompiler=compaqv  DIGITAL|Compaq Visual Fortran Compiler
   --fcompiler=hpux     HP Fortran 90 Compiler
   --fcompiler=ibm      IBM XL Fortran Compiler
   --fcompiler=intel    Intel Fortran Compiler for 32-bit apps
   --fcompiler=intele   Intel Fortran Compiler for Itanium apps
   --fcompiler=intelev  Intel Visual Fortran Compiler for Itanium apps
   --fcompiler=intelv   Intel Visual Fortran Compiler for 32-bit apps
   --fcompiler=lahey    Lahey/Fujitsu Fortran 95 Compiler
   --fcompiler=mips     MIPSpro Fortran Compiler
   --fcompiler=nag      NAGWare Fortran 95 Compiler
   --fcompiler=pg       Portland Group Fortran Compiler
   --fcompiler=sun      Sun|Forte Fortran 95 Compiler
   --fcompiler=vast     Pacific-Sierra Research Fortran 90 Compiler
List of unimplemented Fortran compilers:
   --fcompiler=f  Fortran Company/NAG F Compiler
For compiler details, run 'config_fc --verbose' setup command.
------
Importing scipy_distutils.command.cpuinfo ... error: No module named  
cpuinfo
Importing scipy_distutils.cpuinfo ... ok
------
CPU information: getNCPUs is_32bit is_ppc is_ppc7450 ------
Planck:~ bridgman$



More information about the Pythonmac-SIG mailing list