Ask Your Question

SageMath-9.2 does not start with Jupyter on Fedora32 and 33

asked 2020-11-04 11:56:06 +0200

aszanti gravatar image

updated 2023-10-26 14:13:10 +0200

FrédéricC gravatar image

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)() .....

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2020-11-04 14:34:53 +0200

Sébastien gravatar image

updated 2020-11-05 17:24:18 +0200

The version of Python which is provided with SageMath-9.2 is Python-3.8. In 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. 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, 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

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' make
edit flag offensive delete link more


Thx. I only have /usr/bin/python3.9, I'll wait for these corrections.

aszanti gravatar imageaszanti ( 2020-11-05 16:13:44 +0200 )edit

In 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.

Sébastien gravatar imageSébastien ( 2020-11-05 17:23:38 +0200 )edit

unfortunately - ./configure no such file or directory

aszanti gravatar imageaszanti ( 2020-11-05 23:40:29 +0200 )edit

you 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:

Sébastien gravatar imageSébastien ( 2020-11-06 08:51:14 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-11-04 11:56:06 +0200

Seen: 369 times

Last updated: Nov 05 '20