Ask Your Question
1

ImportError: No module named

asked 2017-07-19 06:23:56 +0100

k1monfared gravatar image

updated 2017-11-11 20:43:43 +0100

vdelecroix 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/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 20:40:28 +0100

vdelecroix gravatar image

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-05 01:41:41 +0100

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-19 06:23:56 +0100

Seen: 1,842 times

Last updated: Nov 11 '17