#9191: Running pyx files from the command line doesn't work anymore
-------------------------------------------------------+--------------------
Reporter: was | Owner: jason
Type: defect | Status:
positive_review
Priority: major | Milestone:
sage-5.4
Component: misc | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: Jeroen
Demeyer, Karl-Dieter Crisman
Authors: Karl-Dieter Crisman, Jeroen Demeyer | Merged in:
Dependencies: #13533 OR #13540 | Stopgaps:
-------------------------------------------------------+--------------------
Changes (by kcrisman):
* dependencies: #13533 => #13533 OR #13540
Old description:
> Create a file like this:
> {{{
> flat:tmp wstein$ cat a.spyx
> print "hello"
> }}}
>
> We have:
> {{{
> flat:tmp wstein$ sage a.spyx
> Traceback (most recent call last):
> File "/Users/wstein/sage/build/sage/local/bin/sage-sagex", line 5, in
> <module>
> from sage.misc.interpreter import load_sagex
> ImportError: cannot import name load_sagex
> }}}
>
> Note that .pyx files work fine:
>
> {{{
> flat:x wstein$ cp a.spyx a.pyx
> flat:x wstein$ sage a.pyx
> hello
> }}}
>
> '''Apply'''
> 1. [attachment:9191_run_cython.patch] to the SCRIPTS repo.
> 1. [attachment:9191_doctest_spyx.patch] to the SAGE library.
New description:
Create a file like this:
{{{
flat:tmp wstein$ cat a.spyx
print "hello"
}}}
We have:
{{{
flat:tmp wstein$ sage a.spyx
Traceback (most recent call last):
File "/Users/wstein/sage/build/sage/local/bin/sage-sagex", line 5, in
<module>
from sage.misc.interpreter import load_sagex
ImportError: cannot import name load_sagex
}}}
Note that .pyx files work fine:
{{{
flat:x wstein$ cp a.spyx a.pyx
flat:x wstein$ sage a.pyx
hello
}}}
'''Apply'''
1. [attachment:9191_run_cython.patch] to the SCRIPTS repo.
1. [attachment:9191_doctest_spyx.patch] to the SAGE library.
* Alternately, apply [attachment:9191_doctest_spyx-alt.patch] to the
SAGE library, if #13540 is used instead.
--
Comment:
Or, if #13540 comes in, then I guess we could use the other patch. I'm
putting a probably illegal dependency listing now.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9191#comment:13>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.