Ask Your Question
1

ImportError: No module named

asked 7 years ago

k1monfared gravatar image

updated 7 years ago

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
Preview: (hide)

2 Answers

Sort by » oldest newest most voted
0

answered 7 years ago

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
Preview: (hide)
link
0

answered 7 years ago

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

Preview: (hide)
link

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: 7 years ago

Seen: 1,876 times

Last updated: Nov 11 '17