I recently started using ActivePython on Mac OS X and installed cosmolopy via the pypm tool. When I try importing cosmology I get the error:
>>> import cosmolopy
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/Users/nemmen/<ipython-input-2-7e384dc17513> in <module>()
----> 1 import cosmolopy
/Users/nemmen/Library/Python/2.7/lib/python/site-packages/cosmolopy/__init__.py in <module>()
87
88 import constants as cc
---> 89 import density as cden
90 import distance as cd
91 import perturbation as cp
/Users/nemmen/Library/Python/2.7/lib/python/site-packages/cosmolopy/density.py in <module>()
5 import numpy
6 import scipy
----> 7 import scipy.special
8 import scipy.integrate as si
9
/Users/nemmen/Library/Python/2.7/lib/python/site-packages/scipy/special/__init__.py in <module>()
7
8 from numpy import *
----> 9 from _cephes import *
10
11 from basic import *
ImportError: dlopen(/Users/nemmen/Library/Python/2.7/lib/python/site-packages/scipy/special/_cephes.so, 2): no suitable image found. Did find:
/Users/nemmen/Library/Python/2.7/lib/python/site-packages/scipy/special/_cephes.so: no matching architecture in universal wrapper
I am using Mac OS X Lion.