fonnesbeck/ScipySuperpack

ImportError for scipy.stats on Mac OS 10.8.5

Closed this issue · 4 comments

Hi,
I am working on a Mac with OS 10.8.5 and am having trouble with the python package scipy.
I followed the directions to install the ScipySuperpack for OS 10.8 using homebrew:
http://stackoverflow.com/questions/10057095/installing-numpy-lion-with-python-2-7 (see bottom).

After this installation, I can import numpy and scipy into python 2.7.3, but I get the following for scipy.stats:

import scipy.stats
Traceback (most recent call last):
File "", line 1, in
File "/Library/Python/2.7/site-packages/scipy-0.14.0.dev_dc14aee-py2.7-macosx-10.9-intel.egg/scipy/stats/init.py", line 332, in
from .stats import *
File "/Library/Python/2.7/site-packages/scipy-0.14.0.dev_dc14aee-py2.7-macosx-10.9-intel.egg/scipy/stats/stats.py", line 181, in
import scipy.special as special
File "/Library/Python/2.7/site-packages/scipy-0.14.0.dev_dc14aee-py2.7-macosx-10.9-intel.egg/scipy/special/init.py", line 532, in
from ._ufuncs import *
ImportError: dlopen(/Library/Python/2.7/site-packages/scipy-0.14.0.dev_dc14aee-py2.7-macosx-10.9-intel.egg/scipy/special/_ufuncs.so, 2): Symbol not found: ___sincos_stret
Referenced from: /Library/Python/2.7/site-packages/scipy-0.14.0.dev_dc14aee-py2.7-macosx-10.9-intel.egg/scipy/special/_ufuncs.so
Expected in: /usr/lib/libSystem.B.dylib
in /Library/Python/2.7/site-packages/scipy-0.14.0.dev_dc14aee-py2.7-macosx-10.9-intel.egg/scipy/special/_ufuncs.so

I would really appreciate some advise on how to fix this issue. Note, I am a terminal novice, so detailed suggestions would be much appreciated!!

Thanks!
Libby

Here is a script for installing the Superpack using Homebrew. I have been using it on Mavericks, but it should work for 10.8 as well. You might give it a try, as it should not suffer from these pesky shared library issues.

Thanks so much! I appreciate your quick response!

  • Libby

On Mon, Aug 25, 2014 at 12:14 PM, Chris Fonnesbeck <notifications@github.com

wrote:

Here is a script https://gist.github.com/fonnesbeck/7de008b05e670d919b71
for installing the Superpack using Homebrew. I have been using it on
Mavericks, but it should work for 10.8 as well. You might give it a try, as
it should not suffer from these pesky shared library issues.


Reply to this email directly or view it on GitHub
#55 (comment)
.

Libby Beckman
PhD Candidate
Museum of Southwestern Biology, Department of Biology
University of New Mexico

Did this work for you?

Actually, I ended up using the Anaconda package which installed scipy just
fine. I'm not sure what the issue was with homebrew, but since I have scipy
working now, I stopped investigating...

  • Libby

On Tue, Aug 26, 2014 at 2:58 PM, Chris Fonnesbeck notifications@github.com
wrote:

Did this work for you?


Reply to this email directly or view it on GitHub
#55 (comment)
.

Libby Beckman
PhD Candidate
Museum of Southwestern Biology, Department of Biology
University of New Mexico