thegooglecodearchive / healpy

Automatically exported from code.google.com/p/healpy
GNU General Public License v2.0
0 stars 0 forks source link

Symbol not found, when importing on Snow Leopard #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Install healpy 0.9.6.3 with Python 2.5.4, numpy 1.2.1, matplotlib
0.98.5.3, pyfits 2.2.2 on Mac OS X 10.6.2
2. Run python, import healpy

What is the expected output? What do you see instead?

Expect to see no output, module should import with no errors. Instead, see
following information:
>>> import healpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "healpy/__init__.py", line 34, in <module>
  File "healpy/pixelfunc.py", line 21, in <module>
ImportError:
dlopen(/Library/Python/2.5/site-packages/healpy/_healpy_pixel_lib.so, 2):
Symbol not found:
__ZNK12Healpix_Base12get_interpolERK8pointingR7fix_arrIiLj4EERS3_IdLj4EE
  Referenced from:
/Library/Python/2.5/site-packages/healpy/_healpy_pixel_lib.so
  Expected in: flat namespace
 in /Library/Python/2.5/site-packages/healpy/_healpy_pixel_lib.so

What version of the product are you using? On what operating system?

Using healpy 0.9.6.3. Same problem occurs with 0.9.6 and 0.9.4. On Snow
Leopard (Mac Os X 10.6.2) with pre-installed version of python 2.5 (2.5.4).

Please provide any additional information below.

Has installed pyfits 2.2.2 and matplotlib 0.98.5.3 before attempting to
install healpy. numpy 1.2.1 pre-installed with python 2.5 on Snow Leopard.
build and install worked without exiting.

Original issue reported on code.google.com by oliver.a...@gmail.com on 19 Nov 2009 at 9:30

GoogleCodeExporter commented 9 years ago
Python 2.5 does not support 64-bit libraries., while healpix library, which is 
compiled independently, will be 
compiled in 64-bit mode by default. To solve this problem, either switch to 
python 2.6 (which supports 64-bit 
by default), or modify the file hpbeta/config/config.generic_gcc to insert the 
option ' -m32 ' just after ' = ' on 
lines CCFLAGS_NO_C, CXXCFLAGS_NO_C and CXXLFLAGS.

Original comment by cyrille....@gmail.com on 25 Nov 2009 at 10:07

GoogleCodeExporter commented 9 years ago
Thanks, Cyrille. I've switched to python 2.6 and healpy now works. If anyone 
else is
having trouble getting pylab, numpy, scipy, etc. to install on Snow Leopard 
with a 64
bit processor, here are a couple of solutions:
http://blog.hyperjeff.net/?p=160
http://macinscience.org/?page_id=6

Original comment by oliver.a...@gmail.com on 25 Nov 2009 at 5:42