1-) Importing GDL segfaults in IPython
$ ii # this is alias for ipython --pylab
Python 2.7, IPython 0.14.dev
I1 import GDL
I2 Segmentation fault (core dumped)
however, works fine in Python shell
>>> import GDL
>>> GDL.findgen(5)
>>> GDL.function('findgen',5)
array([ 0., 1., 2., 3., 4.], dtype=float32)
possibly readline module issue? Interestingly, works fine in Spyder's IPython console.
2-) Source compiled (with --enable-python_module option) GDL Python module fails to work
>>> import GDL
Traceback (most recent call last):
File "", line 1, in
ImportError: ./GDL.so: invalid ELF header
>>> GDL.function('dindgen',10)
array([ 0.00000000e+000, 1.00000000e+000, 2.00000000e+000,
3.00000000e+000, 4.00000000e+000, 0.00000000e+000,
5.92878775e-323, 3.30571061e-313, 6.94380683e-310,
4.03179200e-313])