no module string in sage on Debian 10

asked 2019-08-02 16:03:01 +0200

fylou gravatar image

When I launch sage on Debian 10, I obtain the following message

│ SageMath version 8.6, Release Date: 2019-01-15                     │
│ Using Python 2.7.16. Type "help()" for help.                       │
Traceback (most recent call last):
  File "/usr/share/sagemath/bin/sage-ipython", line 12, in <module>
    from sage.repl.interpreter import SageTerminalApp
  File "/usr/lib/python2.7/dist-packages/sage/repl/", line 108, in <module>
    from sage.repl.preparse import preparse
  File "/usr/lib/python2.7/dist-packages/sage/repl/", line 227, in <module>
    from sage.repl.load import load_wrap
  File "/usr/lib/python2.7/dist-packages/sage/repl/", line 19, in <module>
    from sage.cpython.string import str_to_bytes, bytes_to_str, FS_ENCODING
ImportError: No module named string

Can you help me?


edit retag flag offensive close merge delete



Please edit your question to specify how Sage was installed:

slelievre gravatar imageslelievre ( 2019-08-03 23:02:18 +0200 )edit

It sounds like your sage installation is broken somehow, but if you can't answer follow-up questions there's no way we can help...

Iguananaut gravatar imageIguananaut ( 2019-08-07 15:57:48 +0200 )edit