Hello,

I have a small .gp file, that I am using from inside sage, and that works 
fine.

I can compile it and use it from pari/gp using "gp2c-run" and it works fine 
there.

But when I try to use the compiled file (more precisely the ".so") from 
sage by using "pari.install" with the lines suggested in the .c file, it 
gives me Segmentation faults :

sage: pari('idtowd([2,3])')
---------------------------------------------------------------------------
SignalError                               Traceback (most recent call last)
<ipython-input-2-83e72b80417a> in <module>()
----> 1 pari('idtowd([2,3])')


cypari2/pari_instance.pyx in cypari2.pari_instance.Pari.__call__()


cypari2/gen.pyx in cypari2.gen.objtogen()


cypari2/convert.pyx in cypari2.convert.PyObject_AsGEN()


SignalError: Segmentation fault

What am I doing wrong ? What is the proper way to use compiled gp scripts 
from sage ?

Cheers, and take care.

Frédéric

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/488b1bb3-3e6d-44e9-bae5-e7302f084cb9%40googlegroups.com.

Reply via email to