Wednesday, November 7, 2012

Issues with GDL Python module

1-) Importing GDL segfaults in IPython

$ ii # this is alias for ipython --pylab
Python 2.7, IPython

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: ./ invalid ELF header

possibly, due to wrong lib arch use, during compilation?

3-) GDL's dindgen yields wrong result while accessed through its Python module

>>> 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,

Posted this issue on dindgen with GDL python module

No comments:

Post a Comment