You are not logged in.
Pages: 1
I installed the package sagemath in archlinux and the command sage does run the sage console as expected. Though I have trouble accessing the documentation using the IPython question mark. Namely after lauching sage, writing
sage: graphs?
and pressing Enter I got an ImportError
ImportError: No module named sphinx.application
This error is easily solved by installing the package python2-sphinx (I don't understand why this is not a dependency of sagemath!?). But after installing sphinx an other, more mysterious, error appears
/usr/lib/python2.7/site-packages/sage/misc/sagedoc.pyc in process_extlinks(s, embedded)
497 oldpath = sys.path
498 sys.path = [os.path.join(SAGE_DOC_SRC, 'common')] + oldpath
--> 499 from conf import extlinks
500 sys.path = oldpath
501 for key in extlinks:[/b]
ImportError: cannot import name extlinks
Is there a way to solve it?
Note: the same error occurr when using Sage from Jupyter.
Last edited by vdelecroix (2018-08-12 19:28:49)
Offline
This error is easily solved by installing the package python2-sphinx (I don't understand why this is not a dependency of sagemath!?).
sagemath lists sagemath-doc as an optional dependency. sagemath-doc has python2-sphinx as a dependency.
Offline
vdelecroix wrote:This error is easily solved by installing the package python2-sphinx (I don't understand why this is not a dependency of sagemath!?).
sagemath lists sagemath-doc as an optional dependency. sagemath-doc has python2-sphinx as a dependency.
Indeed, installing sagemath-doc solves the initial problem! Thanks for the suggestion.
Offline
Pages: 1