ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 06 Nov 2020 08:51:14 +0100SageMath-9.2 does not start with Jupyter on Fedora32 and 33https://ask.sagemath.org/question/54114/sagemath-92-does-not-start-with-jupyter-on-fedora32-and-33/ Hi,
After upgrading from SageMath-9.1 to SageMath-9.2,
sage -n jupyter fails
SystemError Python 3.9.0: /usr/bin/python3
Wed Nov 4 11:46:44 2020
A problem occurred executing Python code. Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.
/usr/lib64/python3.9/site-packages/sage/rings/real_lazy.pyx in sage.rings.real_lazy.LazyFieldElement.__complex__ (build/cythonized/sage/rings/real_lazy.c:10039)()
.....Wed, 04 Nov 2020 11:56:06 +0100https://ask.sagemath.org/question/54114/sagemath-92-does-not-start-with-jupyter-on-fedora32-and-33/Answer by Sébastien for <p>Hi,
After upgrading from SageMath-9.1 to SageMath-9.2,
sage -n jupyter fails</p>
<p>SystemError Python 3.9.0: /usr/bin/python3
Wed Nov 4 11:46:44 2020
A problem occurred executing Python code. Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.
/usr/lib64/python3.9/site-packages/sage/rings/real_lazy.pyx in sage.rings.real_lazy.LazyFieldElement.__complex__ (build/cythonized/sage/rings/real_lazy.c:10039)()
.....</p>
https://ask.sagemath.org/question/54114/sagemath-92-does-not-start-with-jupyter-on-fedora32-and-33/?answer=54115#post-id-54115The version of Python which is provided with SageMath-9.2 is Python-3.8. In ticket [#30184](https://trac.sagemath.org/ticket/30184), some work was done to support Python 3.9, but the replacement of 3.8 by 3.9 will be done later in ticket [#30589](https://trac.sagemath.org/ticket/30589). When installing sagemath 9.2, any version of python between 3.6, 3.7, 3.8 and 3.9 available on the system will be chosen. But, so far, we must admit that the sagemath library was not tested so much with Python 3.9. So maybe it was too early to allow sagemath-9.2 to use python 3.9... Anyway, it is too late now.
As [explained here](https://doc.sagemath.org/html/en/installation/source.html#python-for-venv), you can impose the version of python3 of your choice when compiling sagemath. I suggest you chose Python 3.8. On my machine, python3.8 is here:
$ which python3.8
/usr/bin/python3.8
So, to compile sagemath with the python3.8 at /usr/bin/python3.8, one does:
make configure
./configure --with-python=/usr/bin/python3.8
MAKE='make -j5' make
If you don't have python other than version 3.9, then compile sagemath with the python provided by sage (which is currently version 3.8.5 I think):
make configure
./configure --without-system-python3
MAKE='make -j5' makeWed, 04 Nov 2020 14:34:53 +0100https://ask.sagemath.org/question/54114/sagemath-92-does-not-start-with-jupyter-on-fedora32-and-33/?answer=54115#post-id-54115Comment by Sébastien for <p>The version of Python which is provided with SageMath-9.2 is Python-3.8. In ticket <a href="https://trac.sagemath.org/ticket/30184">#30184</a>, some work was done to support Python 3.9, but the replacement of 3.8 by 3.9 will be done later in ticket <a href="https://trac.sagemath.org/ticket/30589">#30589</a>. When installing sagemath 9.2, any version of python between 3.6, 3.7, 3.8 and 3.9 available on the system will be chosen. But, so far, we must admit that the sagemath library was not tested so much with Python 3.9. So maybe it was too early to allow sagemath-9.2 to use python 3.9... Anyway, it is too late now.</p>
<p>As <a href="https://doc.sagemath.org/html/en/installation/source.html#python-for-venv">explained here</a>, you can impose the version of python3 of your choice when compiling sagemath. I suggest you chose Python 3.8. On my machine, python3.8 is here:</p>
<pre><code>$ which python3.8
/usr/bin/python3.8
</code></pre>
<p>So, to compile sagemath with the python3.8 at /usr/bin/python3.8, one does:</p>
<pre><code>make configure
./configure --with-python=/usr/bin/python3.8
MAKE='make -j5' make
</code></pre>
<p>If you don't have python other than version 3.9, then compile sagemath with the python provided by sage (which is currently version 3.8.5 I think):</p>
<pre><code>make configure
./configure --without-system-python3
MAKE='make -j5' make
</code></pre>
https://ask.sagemath.org/question/54114/sagemath-92-does-not-start-with-jupyter-on-fedora32-and-33/?comment=54125#post-id-54125In that case, you want to use the python provided by sage. This can be done as follows:
./configure --without-system-python3
I updated the above answer accordingly.Thu, 05 Nov 2020 17:23:38 +0100https://ask.sagemath.org/question/54114/sagemath-92-does-not-start-with-jupyter-on-fedora32-and-33/?comment=54125#post-id-54125Comment by aszanti for <p>The version of Python which is provided with SageMath-9.2 is Python-3.8. In ticket <a href="https://trac.sagemath.org/ticket/30184">#30184</a>, some work was done to support Python 3.9, but the replacement of 3.8 by 3.9 will be done later in ticket <a href="https://trac.sagemath.org/ticket/30589">#30589</a>. When installing sagemath 9.2, any version of python between 3.6, 3.7, 3.8 and 3.9 available on the system will be chosen. But, so far, we must admit that the sagemath library was not tested so much with Python 3.9. So maybe it was too early to allow sagemath-9.2 to use python 3.9... Anyway, it is too late now.</p>
<p>As <a href="https://doc.sagemath.org/html/en/installation/source.html#python-for-venv">explained here</a>, you can impose the version of python3 of your choice when compiling sagemath. I suggest you chose Python 3.8. On my machine, python3.8 is here:</p>
<pre><code>$ which python3.8
/usr/bin/python3.8
</code></pre>
<p>So, to compile sagemath with the python3.8 at /usr/bin/python3.8, one does:</p>
<pre><code>make configure
./configure --with-python=/usr/bin/python3.8
MAKE='make -j5' make
</code></pre>
<p>If you don't have python other than version 3.9, then compile sagemath with the python provided by sage (which is currently version 3.8.5 I think):</p>
<pre><code>make configure
./configure --without-system-python3
MAKE='make -j5' make
</code></pre>
https://ask.sagemath.org/question/54114/sagemath-92-does-not-start-with-jupyter-on-fedora32-and-33/?comment=54124#post-id-54124Thx.
I only have /usr/bin/python3.9, I'll wait for these corrections.Thu, 05 Nov 2020 16:13:44 +0100https://ask.sagemath.org/question/54114/sagemath-92-does-not-start-with-jupyter-on-fedora32-and-33/?comment=54124#post-id-54124Comment by aszanti for <p>The version of Python which is provided with SageMath-9.2 is Python-3.8. In ticket <a href="https://trac.sagemath.org/ticket/30184">#30184</a>, some work was done to support Python 3.9, but the replacement of 3.8 by 3.9 will be done later in ticket <a href="https://trac.sagemath.org/ticket/30589">#30589</a>. When installing sagemath 9.2, any version of python between 3.6, 3.7, 3.8 and 3.9 available on the system will be chosen. But, so far, we must admit that the sagemath library was not tested so much with Python 3.9. So maybe it was too early to allow sagemath-9.2 to use python 3.9... Anyway, it is too late now.</p>
<p>As <a href="https://doc.sagemath.org/html/en/installation/source.html#python-for-venv">explained here</a>, you can impose the version of python3 of your choice when compiling sagemath. I suggest you chose Python 3.8. On my machine, python3.8 is here:</p>
<pre><code>$ which python3.8
/usr/bin/python3.8
</code></pre>
<p>So, to compile sagemath with the python3.8 at /usr/bin/python3.8, one does:</p>
<pre><code>make configure
./configure --with-python=/usr/bin/python3.8
MAKE='make -j5' make
</code></pre>
<p>If you don't have python other than version 3.9, then compile sagemath with the python provided by sage (which is currently version 3.8.5 I think):</p>
<pre><code>make configure
./configure --without-system-python3
MAKE='make -j5' make
</code></pre>
https://ask.sagemath.org/question/54114/sagemath-92-does-not-start-with-jupyter-on-fedora32-and-33/?comment=54129#post-id-54129unfortunately - ./configure no such file or directoryThu, 05 Nov 2020 23:40:29 +0100https://ask.sagemath.org/question/54114/sagemath-92-does-not-start-with-jupyter-on-fedora32-and-33/?comment=54129#post-id-54129Comment by Sébastien for <p>The version of Python which is provided with SageMath-9.2 is Python-3.8. In ticket <a href="https://trac.sagemath.org/ticket/30184">#30184</a>, some work was done to support Python 3.9, but the replacement of 3.8 by 3.9 will be done later in ticket <a href="https://trac.sagemath.org/ticket/30589">#30589</a>. When installing sagemath 9.2, any version of python between 3.6, 3.7, 3.8 and 3.9 available on the system will be chosen. But, so far, we must admit that the sagemath library was not tested so much with Python 3.9. So maybe it was too early to allow sagemath-9.2 to use python 3.9... Anyway, it is too late now.</p>
<p>As <a href="https://doc.sagemath.org/html/en/installation/source.html#python-for-venv">explained here</a>, you can impose the version of python3 of your choice when compiling sagemath. I suggest you chose Python 3.8. On my machine, python3.8 is here:</p>
<pre><code>$ which python3.8
/usr/bin/python3.8
</code></pre>
<p>So, to compile sagemath with the python3.8 at /usr/bin/python3.8, one does:</p>
<pre><code>make configure
./configure --with-python=/usr/bin/python3.8
MAKE='make -j5' make
</code></pre>
<p>If you don't have python other than version 3.9, then compile sagemath with the python provided by sage (which is currently version 3.8.5 I think):</p>
<pre><code>make configure
./configure --without-system-python3
MAKE='make -j5' make
</code></pre>
https://ask.sagemath.org/question/54114/sagemath-92-does-not-start-with-jupyter-on-fedora32-and-33/?comment=54130#post-id-54130you need to change the directory to the SAGE_ROOT before running `./configure`, see section 3 "cd into the source/build directory:" of the Readme file available here: https://github.com/sagemath/sage/tree/masterFri, 06 Nov 2020 08:51:14 +0100https://ask.sagemath.org/question/54114/sagemath-92-does-not-start-with-jupyter-on-fedora32-and-33/?comment=54130#post-id-54130