You are not logged in.

- Topics: Active | Unanswered

Pages: **1**

**vdelecroix****Member**- Registered: 2017-02-26
- Posts: 11

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

**Raynman****Member**- Registered: 2011-10-22
- Posts: 1,244

vdelecroix wrote:

This error is easily solved by installing the package

python2-sphinx(I don't understand why this is not a dependency ofsagemath!?).

sagemath lists sagemath-doc as an optional dependency. sagemath-doc has python2-sphinx as a dependency.

Offline

**vdelecroix****Member**- Registered: 2017-02-26
- Posts: 11

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 ofsagemath!?).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**