I am trying to use the scipy stats package in Python and am getting the following error (on Mac OS X):
$ python
Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> from scipy import stats
I then get the error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/stats/__init__.py", line 7, in <module>
from stats import *
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/stats/stats.py", line 202, in <module>
import scipy.special as special
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/special/__init__.py", line 8, in <module>
from basic import *
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/special/basic.py", line 6, in <module>
from _cephes import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/special/_cephes.so, 2): Symbol not found: _aswfa_
Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/special/_cephes.so
Expected in: flat namespace
in /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg/scipy/special/_cephes.so
Any idea what could be happening here?
thanks.