ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 17 Feb 2014 15:15:50 -0600cannot run: from sage.rings.number_field.splitting_field import SplittingDatahttp://ask.sagemath.org/question/11048/cannot-run-from-sageringsnumber_fieldsplitting_field-import-splittingdata/When I type this line
from sage.rings.number_field.splitting_field import SplittingData
in Sage, I get the following error message:
Traceback (click to the left of this block for traceback)
...
ImportError: No module named splitting_field
I see in [the online documentation](http://sagemath.org/doc/reference/number_fields/sage/rings/number_field/splitting_field.html)
that splitting fields of polynomials over number fields is very recent in Sage:
2014-01-02 Jeroen DemeyerSun, 16 Feb 2014 20:10:39 -0600http://ask.sagemath.org/question/11048/cannot-run-from-sageringsnumber_fieldsplitting_field-import-splittingdata/Answer by slelievre for <p>When I type this line</p>
<pre><code>from sage.rings.number_field.splitting_field import SplittingData
</code></pre>
<p>in Sage, I get the following error message:</p>
<pre><code>Traceback (click to the left of this block for traceback)
...
ImportError: No module named splitting_field
</code></pre>
<p>I see in <a href="http://sagemath.org/doc/reference/number_fields/sage/rings/number_field/splitting_field.html">the online documentation</a>
that splitting fields of polynomials over number fields is very recent in Sage:</p>
<pre><code>2014-01-02 Jeroen Demeyer
</code></pre>
http://ask.sagemath.org/question/11048/cannot-run-from-sageringsnumber_fieldsplitting_field-import-splittingdata/?answer=16053#post-id-16053Hello,
I edited your question so that it is actually a question, not just a quick copy-paste.
It seems that you have noticed in the online documentation that the code for splitting fields over number fields is very recent in Sage.
As a consequence, it will only work if you are using a recent version of Sage, which includes these changes. For instance, in Sage 6.1.1 the command you tried will work, but in Sage 5.12 it will not.
What version of Sage are you using? If you are able to, you should install Sage 6.1.1.Sun, 16 Feb 2014 22:13:43 -0600http://ask.sagemath.org/question/11048/cannot-run-from-sageringsnumber_fieldsplitting_field-import-splittingdata/?answer=16053#post-id-16053Comment by cjsh for <p>Hello,</p>
<p>I edited your question so that it is actually a question, not just a quick copy-paste.</p>
<p>It seems that you have noticed in the online documentation that the code for splitting fields over number fields is very recent in Sage.</p>
<p>As a consequence, it will only work if you are using a recent version of Sage, which includes these changes. For instance, in Sage 6.1.1 the command you tried will work, but in Sage 5.12 it will not.</p>
<p>What version of Sage are you using? If you are able to, you should install Sage 6.1.1.</p>
http://ask.sagemath.org/question/11048/cannot-run-from-sageringsnumber_fieldsplitting_field-import-splittingdata/?comment=16063#post-id-16063thank you very much!
I try it sagecell 6.0,but cannot run yet.
maybe 6.1.1 in labs to test?anyway thank Jeroen Demeyer very much!Mon, 17 Feb 2014 15:15:50 -0600http://ask.sagemath.org/question/11048/cannot-run-from-sageringsnumber_fieldsplitting_field-import-splittingdata/?comment=16063#post-id-16063