running .spyx files

28 views
Skip to first unread message

Charles Bouillaguet

unread,
Oct 7, 2012, 6:30:46 PM10/7/12
to sage-...@googlegroups.com
Dear all,

I have a sage file (let us call it foo.sage), that sage runs finely :

./sage foo.sage

--> OK

then, if I ever wanted to "cythonize" it (for greater speed), things start to go wrong

mv foo.sage foo.spyx
./sage foo.spyx

-->

Traceback (most recent call last):
File "/Users/cbouilla/Desktop/sage-5.3/local/bin/sage-sagex", line 5, in <module>
from sage.misc.interpreter import load_sagex
ImportError: cannot import name load_sagex

Is this normal ? Am I doing something wrong ? This happens on sage 5.3 freshly compiled from source without apparent problem on Mac Os 10.7.5

Thanks,
--
Charles Bouillaguet

Jeroen Demeyer

unread,
Oct 8, 2012, 4:01:54 AM10/8/12
to sage-...@googlegroups.com
On 2012-10-08 00:30, Charles Bouillaguet wrote:
> Traceback (most recent call last):
> File "/Users/cbouilla/Desktop/sage-5.3/local/bin/sage-sagex", line 5, in <module>
> from sage.misc.interpreter import load_sagex
> ImportError: cannot import name load_sagex
>
> Is this normal ? Am I doing something wrong ? This happens on sage 5.3 freshly compiled from source without apparent problem on Mac Os 10.7.5

There is a patch (with positive_review) for this at:
http://trac.sagemath.org/sage_trac/ticket/9191
Reply all
Reply to author
Forward
0 new messages