#20093: broken spyx support concerning imports
--------------------------+------------------------
       Reporter:  dkrenn  |        Owner:
           Type:  defect  |       Status:  new
       Priority:  major   |    Milestone:  sage-7.1
      Component:  cython  |   Resolution:
       Keywords:          |    Merged in:
        Authors:          |    Reviewers:
Report Upstream:  N/A     |  Work issues:
         Branch:          |       Commit:
   Dependencies:          |     Stopgaps:
--------------------------+------------------------
Description changed by jdemeyer:

Old description:

> File `problem.spyx` with
> {{{
> import sage.all
> from sage.all import *
> from sage.rings.integer_ring import ZZ
> print ZZ(1000)
> }}}
> Run it with `sage problem.spyx` and it fails with
> {{{
> ImportError: cannot import name ZZ
> }}}
> on 6.9, 6.10, 7.0, 7.1.beta4. On 6.8 it fails with
> {{{
> error: command 'gcc' failed with exit status 1
> }}}
>
> The original problem (failing code in file `problem.spyx`) was
> {{{
> import sage.all
> from sage.rings.real_mpfi import RealIntervalField
> RealIntervalField(100)(4.2)
> }}}
> See also discussion https://groups.google.com/forum/#!topic/sage-
> support/NcQ2Lgj_oao

New description:

 File `problem.spyx` with
 {{{
 import sage.all
 from sage.all import *
 from sage.rings.integer_ring import ZZ
 print ZZ(1000)
 }}}
 Run it with `sage problem.spyx` and it fails with
 {{{
 ImportError: cannot import name ZZ
 }}}
 on 6.9, 6.10, 7.0, 7.1.beta4.

 See also discussion https://groups.google.com/forum/#!topic/sage-
 support/NcQ2Lgj_oao

--

--
Ticket URL: <http://trac.sagemath.org/ticket/20093#comment:1>
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 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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to