Ask Your Question

ImportError: No module named

asked 2017-07-18 23:23:56 -0500

k1monfared gravatar image

I just did a fresh install of fedora 26 (4.11.8-300.fc26.x86_64) and installed a jupyter notebook using pip3 and then installed the sage from the repositories. Upon calling sage I get the following error. Any ideas why this happens and how to resolve this?

│ SageMath version 7.6, Release Date: 2017-03-25                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
Traceback (most recent call last):
  File "/usr/lib64/sagemath/local/bin/sage-ipython", line 7, in <module>
    from sage.repl.interpreter import SageTerminalApp
  File "/usr/lib64/python2.7/site-packages/sage/repl/", line 108, in <module>
    from sage.repl.prompts import SagePrompts, InterfacePrompts
  File "/usr/lib64/python2.7/site-packages/sage/repl/", line 16, in <module>
    from IPython.terminal.prompts import Prompts
  File "/usr/lib64/sagemath/site-packages/IPython/", line 48, in <module>
    from .core.application import Application
  File "/usr/lib64/sagemath/site-packages/IPython/core/", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ImportError: No module named traitlets.config.application
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2017-08-04 18:41:41 -0500

xjek gravatar image

sudo dnf install python2-traitlets

sudo dnf install python2-backports-shutil_get_terminal_size

sudo dnf install python2-simplegeneric

sudo dnf install sage-devel

sudo dnf install python2-psutil

sudo dnf install Singular-doc Singular-emacs

cd /usr/lib64/sagemath/local/lib/

sudo ln -s

edit flag offensive delete link more

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: 2017-07-18 23:23:56 -0500

Seen: 142 times

Last updated: Jul 18