Ask Your Question
1

ImportError: No module named terminal.prompts on Debian

asked 2018-01-17 18:32:09 +0100

Gmey gravatar image

updated 2019-01-09 17:56:10 +0100

FrédéricC gravatar image

I am trying to install SageMath 1.8 on a debian 8.10 (Jessie). I have tried both the Debian precompiled binary package from the website: sage-8.1-Debian_GNU_Linux_8-x86_64.tar.bz2, and also from source: sage-8.1.tar.gz

Either way I get the same error when I start it up: ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â SageMath version 8.1, Release Date: 2017-12-07 â â Type "notebook()" for the browser-based notebook interface. â â Type "help()" for help. â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Traceback (most recent call last): File "/d1/opt/sage/SageMath-8.1/src/bin/sage-ipython", line 7, in <module> from sage.repl.interpreter import SageTerminalApp File "/d1/opt/sage/SageMath-8.1/local/lib/python2.7/site-packages/sage/repl/interpreter.py", line 108, in <module> from sage.repl.prompts import SagePrompts, InterfacePrompts File "/d1/opt/sage/SageMath-8.1/local/lib/python2.7/site-packages/sage/repl/prompts.py", line 16, in <module> from IPython.terminal.prompts import Prompts ImportError: No module named terminal.prompts

I have googled around and I do see the problem has occurred in RedHat Fedora, but the solutions are RedHat-specific. The packages they say to include are not available in Debian. Additionally, they are pulling sage from the RedHat repository. Any help would be most welcome. Thank you in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2018-01-17 19:44:55 +0100

dan_fulea gravatar image

This machine has a working sage installation. (Manjaro answering here, it is the reason i was choosing manjaro on it, the distro has it now in its official repository!)

The ImportError announces that the following module is missing, located as follows in my case:

sage: import IPython.terminal.prompts
sage: a = IPython.terminal.prompts
sage: a
<module 'IPython.terminal.prompts' from '/usr/lib/python2.7/site-packages/IPython/terminal/prompts.pyc'>

Is that site-package present where it should be?

Do you have iron python installed in debian? In my case:

[dan@k7 ~]$ which ipython
/usr/bin/ipython

[dan@k7 ~]$ ipython --version
6.2.1
edit flag offensive delete link more

Comments

Great! Thank you for the tip! I had installed ipython back in 2008 and sage apparently was find that old copy. Once I deleted it, sage is starting up as expected. Thank you!

Gmey gravatar imageGmey ( 2018-01-17 21:39:40 +0100 )edit

Wonderful! Enjoy!

dan_fulea gravatar imagedan_fulea ( 2018-01-18 12:47:52 +0100 )edit

@Gmey, if this solves your problem, please accept the answer by clicking on the tick mark next to it. This will mark the answer as accepted and your question as solved.

slelievre gravatar imageslelievre ( 2018-05-17 12:46:58 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-01-17 18:32:09 +0100

Seen: 582 times

Last updated: Jan 17 '18