First time here? Check out the FAQ!

Ask Your Question
0

Error: No module named 'sagenb'

asked 4 years ago

MKS gravatar image

updated 4 years ago

SageMath is not working on Ubuntu 20.04. When I am going to open notebook interface it show the following errors:

https://imgur.com/a/aQQkUSQ

How can I fix this?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 4 years ago

Emmanuel Charpentier gravatar image

Your banner tells us that you are running a Python 3-based Sage. sagenb (the classical notebook) is NOT compatible/supportable with Python 3. This incompatibility has been known and published for a long time, and this classicalnotebook has been deprecated for a while...

If you want to use a Python 3-based Sage, you have to use the Jupyter notebook (or another interface, such sage-shell-mode for emacs, or the JupyterLab notebook (optional package)).

If you insist on the classical Sage notebook, you have to install a Python 2-based Sage. As far as I can tell, in has been announced that 9.1 would be the last Sage version to support Python 2. Furthermore, I do not know if precompiled Python 2-based package(s) exist(s) for which distribution(s). Last but not least, choosing to stay with Python 2-based Sage entails staying with (at best) Sage 9.1. Since Sage 9.2, the Python 2-specific code is being pruned from Sage source...

BTW : in 9.3.beta2, notebook() no longer exists...

HTH,

Preview: (hide)
link

Comments

@ EmmanuelCharpentier BUt it does not solve my problem how to fix it?

MKS gravatar imageMKS ( 4 years ago )

Paraphrasing what I already wrote, you can either install a Python 2-based Sage and stay with it, or renounce the classical Sage notebook.

In other words you can't "fix it".

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 4 years ago )

If you run sage -n instead of sage, it will open up the Jupyter notebook, by the way.

John Palmieri gravatar imageJohn Palmieri ( 4 years ago )

@ JohnPalmieri I did according to you, but shows access denied: Access to the file was deniedThe file at file:///home/mks/.local/share/jupyter/runtime/nbserver-9493-open.html is not readable. It may have been removed, moved, or file permissions may be preventing access. ERR_ACCESS_DENIED

MKS gravatar imageMKS ( 4 years ago )

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

Stats

Asked: 4 years ago

Seen: 713 times

Last updated: Nov 29 '20