Sagemath does not open anymore
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).
You should be much more specific about. We need to know at least your operating system, which method you used to install sagemath. And possibly, what have you done recently that might have break Sage.
@vdelecroix I don't think I can be much more specific. My OS is Arch Linux (which is already mentioned), I installed Sagemath via
pacman
and what I did to break it was to try to uninstall every package that was installed viapip2
. (I did this last thing because when trying to installsagemath-jupyter
, pacman failed with a bunch of conflicted packages that were installed via pip2.)