[SciPy-User] recipe for installation on Mac OS X?

Ben Willmore bdeb at willmore.eu
Thu Feb 24 06:59:08 EST 2011


Hi,

I'm trying to install scipy on Mac OS X 10.6 and have not succeeded
after a fair bit of effort. I wonder if anyone can provide some
guidance.

I have tried:

1. Apple's Python 2.6 and the SciPy superpack from
<http://stronginference.com/scipy-superpack/>
-- scipy.test('1','10') fails with errors relating to ARPACK, such as [1].

2. python.org Python 2.7, gfortran and the compilation instructions
from <http://www.scipy.org/Installing_SciPy/Mac_OS_X>
-- scipy.test('1','10') fails; I didn't store the error.

3. python.org Python 2.7, and corresponding prebuilt SciPy/NumPy
binaries from <http://www.scipy.org/Download>
-- scipy.test('1','10') fails with errors relating to Weave, e.g. [2].

4. plus a number of less well defined approaches, none of which has
resulted in a SciPy that passes tests.

Can anyone tell me what I've done wrong with the above, or provide a
different strategy for successful installation of a recent SciPy on
Mac OS X. I am non-naive about compilers etc and willing to put in a
bit of effort to get this working satisfactorily.

Thanks for any advice!

Ben


[1]:
======================================================================
ERROR: test_complex_nonsymmetric_modes
(test_arpack.TestEigenComplexNonSymmetric)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/scipy-0.10.0.dev_20110113-py2.6-macosx-10.6-universal.egg/scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py",
line 333, in test_complex_nonsymmetric_modes
    self.eval_evec(m,typ,k,which)
  File "/Library/Python/2.6/site-packages/scipy-0.10.0.dev_20110113-py2.6-macosx-10.6-universal.egg/scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py",
line 314, in eval_evec
    eval,evec=eigs(a,k,which=which,v0=v0)
  File "/Library/Python/2.6/site-packages/scipy-0.10.0.dev_20110113-py2.6-macosx-10.6-universal.egg/scipy/sparse/linalg/eigen/arpack/arpack.py",
line 571, in eigs
    params.iterate()
  File "/Library/Python/2.6/site-packages/scipy-0.10.0.dev_20110113-py2.6-macosx-10.6-universal.egg/scipy/sparse/linalg/eigen/arpack/arpack.py",
line 360, in iterate
    raise ArpackError(self.info)
ArpackError: ARPACK error -8: Error return from trid. eigenvalue
calculation; Informational error from LAPACK routine dsteqr .


[2]:
======================================================================
ERROR: test_call_function (test_c_spec.CallableConverter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/weave/tests/test_c_spec.py",
line 323, in test_call_function
    compiler=self.compiler,force=1)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/weave/inline_tools.py",
line 318, in inline
    function_catalog.add_function(code,func,module_dir)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/weave/catalog.py",
line 656, in add_function
    self.add_function_persistent(code,function)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/weave/catalog.py",
line 691, in add_function_persistent
    function_list = function_list + cat.get(code,[])
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py",
line 114, in get
    return self[key]
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py",
line 122, in __getitem__
    value = Unpickler(f).load()
ImportError: No module named sc_d9b504d1a91ae5e28245fdf60a03c4142



More information about the SciPy-User mailing list