You are not logged in.

#1 2018-08-12 19:10:13

vdelecroix
Member
Registered: 2017-02-26
Posts: 15

SageMath documentation

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

#2 2018-08-12 19:34:55

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: SageMath documentation

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.

Offline

#3 2018-08-12 19:51:54

vdelecroix
Member
Registered: 2017-02-26
Posts: 15

Re: SageMath documentation

Raynman wrote:
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

Board footer

Powered by FluxBB