I was trying to install sagemath-jupyter
on my Arch Linux (which turned out to be a near impossible task) and deleted a bunch of packages from pip2. Now I can't even open sagemath, even after re-installing sagemath from Pacman:
Traceback (most recent call last):
File "/usr/bin/sage-ipython", line 12, in <module>
from sage.repl.interpreter import SageTerminalApp
File "/usr/lib/python2.7/site-packages/sage/repl/interpreter.py", line 109, in <module>
from sage.repl.prompts import SagePrompts, InterfacePrompts
File "/usr/lib/python2.7/site-packages/sage/repl/prompts.py", line 16, in <module>
from IPython.terminal.prompts import Prompts
File "/usr/lib/python2.7/site-packages/IPython/__init__.py", line 48, in <module>
from .core.application import Application
File "/usr/lib/python2.7/site-packages/IPython/core/application.py", line 23, in <module>
from traitlets.config.application import Application, catch_config_error
File "/usr/lib/python2.7/site-packages/traitlets/__init__.py", line 1, in <module>
from .traitlets import *
File "/usr/lib/python2.7/site-packages/traitlets/traitlets.py", line 60, in <module>
from .utils.importstring import import_item
File "/usr/lib/python2.7/site-packages/traitlets/utils/importstring.py", line 8, in <module>
from ipython_genutils.py3compat import cast_bytes_py2
ImportError: No module named ipython_genutils.py3compat
Any ideas on how to overcome this? (And preferably also installing sagemath-jupyter
?
I have installed ipython_genutils
with pip2 already (version 0.1.0).