healpy/healpy — Issue #22: Flat namespace error for Python 2.7 on OSX 10.6
Author: ebressert
Created: 2011-12-01 22:09:57+00:00
State: open

Hi,

I'm trying to get healpy working but I have run into a potential bug. Installing healpy has been no problem, but when I try to import healpy I get an error concerning a "flat namespace". The error from python is given below.

The OSX machine has Python 2.7 from EPD installed (64bit). The cfitsio library is installed using Homebrew with 32 and 64 bit build. Any ideas on what may be the problem?

Cheers,
Eli

In [1]: import healpy
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/Users/test/ in ()
----> 1 import healpy

/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/healpy/__init__.py in ()
36 #nm = npy

37
---> 38 from pixelfunc import (ma, mask_good, mask_bad,
39 ang2pix, pix2ang,
40 pix2vec, vec2pix,

/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/healpy/pixelfunc.py in ()
86 import exceptions
87 import warnings
---> 88 import _healpy_pixel_lib as pixlib
89
90 #: Special value used for masked pixels

ImportError: dlopen(/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/healpy/_healpy_pixel_lib.so, 2): Symbol not found: __Py_InitPyPyModule
Referenced from: /Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/healpy/_healpy_pixel_lib.so
Expected in: flat namespace
in /Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/healpy/_healpy_pixel_lib.so