Hi,

In order to do some numerical ODE work quickly, I was defining all my
functions with cython.  The recent 2.8.7 upgrade seems to have broken
several of these functions.  As one example, the following definition
attempt:

%cython
cdef Circ(t):
    return (cos((t/365.0)*2*RDF(pi)) + 1)/2

gives a bunch of errors starting with:

Traceback (most recent call last):    cdef Circ(t):
  File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-packages/sage/
server/support.py", line 303, in cython_import_all
    create_local_c_file=create_local_c_file)
  File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-packages/sage/
server/support.py", line 284, in cython_import
    create_local_c_file=create_local_c_file)
  File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-packages/sage/
misc/cython.py", line 220, in cython
    raise RuntimeError, "Error converting %s to C:\n%s\n%s"%(filename,
log, err)
RuntimeError: Error converting /Volumes/D/sage-2.8.4.1/sage_notebook/
worksheets/mh/14/code/sage21.spyx to C:


Error converting Pyrex file to C:
------------------------------------------------------------
...
include "interrupt.pxi"  # ctrl-c interrupt block support
include "stdsage.pxi"  # ctrl-c interrupt block support

include "cdefs.pxi"
cdef Circ(t):
    return (cos((t/365.0)*2*RDF(pi)) + 1)/2           ^
------------------------------------------------------------

Any help is appreciated, I don't have much understanding of cython.

Marshall


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to