Ask Your Question
1

ImportError: No module named

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

k1monfared gravatar image

updated 2017-11-11 13:43:43 -0600

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/interpreter.py", line 108, in <module>
    from sage.repl.prompts import SagePrompts, InterfacePrompts
  File "/usr/lib64/python2.7/site-packages/sage/repl/prompts.py", line 16, in <module>
    from IPython.terminal.prompts import Prompts
  File "/usr/lib64/sagemath/site-packages/IPython/__init__.py", line 48, in <module>
    from .core.application import Application
  File "/usr/lib64/sagemath/site-packages/IPython/core/application.py", 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

2 answers

Sort by » oldest newest most voted
0

answered 2017-11-11 13:40:28 -0600

This is a known issue with the fedora package, see fedora bug report 1464520. It should be solved with

$ sudo dnf install python2-traitlets
$ sudo dnf install python2-backports-shutil_get_terminal_size
edit flag offensive delete link more
0

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

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 libSingular-4.1.0.so libSingular.so

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

Stats

Asked: 2017-07-18 23:23:56 -0600

Seen: 329 times

Last updated: Nov 11