cosmolopy on activepython

46 views
Skip to first unread message

Roban Kramer

unread,
Apr 28, 2011, 5:13:52 AM4/28/11
to cosmolo...@googlegroups.com
Apparently cosmolopy is now available on ActivePython: http://code.activestate.com/pypm/cosmolopy/

If anyone uses ActivePython, I'd be curious to know if this package works okay.

Rodrigo Nemmen

unread,
Aug 9, 2011, 8:48:52 PM8/9/11
to cosmolo...@googlegroups.com
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





Any idea of what is going on?

I am using Mac OS X Lion.

Thanks!

Roban Hultman Kramer

unread,
Aug 9, 2011, 11:02:51 PM8/9/11
to cosmolo...@googlegroups.com
It looks like a problem with scipy, actually. Can you import
scipy.special successfully in any other context (for instance, at the
python prompt)?

--
Roban Hultman Kramer | Zwicky Fellow | Institute for Astronomy
ETH Zürich (Swiss Federal Institute of Technology)

Rodrigo Nemmen

unread,
Aug 9, 2011, 11:36:43 PM8/9/11
to cosmolo...@googlegroups.com
Indeed, when I try
>>> import scipy.special
I get an error. I will investigate this further.

Thanks!

Rodrigo

--
http://goo.gl/8S1Oo

Reply all
Reply to author
Forward
0 new messages