Hi everyone,

I'm a bit stumped trying to convert a Sage script that uses the inbuilt 
Cone type to a Cython/spyx script. After various errors and false starts, 
the only modification I've made to the script is to put the line "from 
sage.all import *" at the top, and obviously to change the extension from 
.sage to .spyx. Compilation then succeeds (it failed on all of my previous 
attempts), and the first bit of the program runs, but it dies as soon as it 
hits a call to Cone as follows:

Traceback (most recent call last):
  File "/var/local/sage-6.2-i686-Linux/local/bin/sage-run-cython", line 9, 
in <module>
    eval(compile(s, tmp_filename(), 'exec'))
  File "/home/user/.sage/temp/host/14538/tmp_FhdVdN", line 1, in <module>
    
  File "_home_user_file_spyx_0.pyx", line 134, in init 
_home_user_file_spyx_0 (_home_user_file_spyx_0.c:2788)
    dual_cone = Cone( [generator.tolist() for generator in 
set_of_base_vectors] )
NameError: name 'Cone' is not defined


Obviously I've missed something, but I've no idea what, I haven't been able 
to find any documentation on using Sage inbuilt types in spyx files, only 
what I've gleaned from various forum posts. Any help would be greatly 
appreciated.

Thanks!
Pete

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to