Sphinx cannot find napolean extension

760 views
Skip to first unread message

Kyle Douglass

unread,
Jul 11, 2016, 3:40:40 AM7/11/16
to sphinx-users
Hi everyone,
I'm encountering the following error when trying to build my docs using napolean:

(DataSTORM)douglass@lebpc18:~/src/bstore/docs$ make html
sphinx
-build -b html -d _build/doctrees   . _build/html
Running Sphinx v1.4.4

Extension error:
Could not import extension sphinx.ext.napolean (exception: No module named 'sphinx.ext.napolean')
Makefile:58: recipe for target 'html' failed
make
: *** [html] Error 1

The problem is, I can find Napolean inside my site-packages for the DataSTORM environment:

(DataSTORM)douglass@lebpc18:~$ ls ~/anaconda3/envs/DataSTORM/lib/python3.5/site-packages/sphinx/ext/na
poleon
/
docstring
.py  __init__.py  iterators.py  __pycache__

I cannot, however, import Napolean from inside the Python interpreter:

(DataSTORM)douglass@lebpc18:~$ python
Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul  2 2016, 17:53:06)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sphinx
>>> import sphinx.ext
>>> import sphinx.ext.napolean
Traceback (most recent call last):
 
File "<stdin>", line 1, in <module>
ImportError: No module named 'sphinx.ext.napolean'

I have added sphinx.ext.napolean to my conf.py as instructed:

extensions = [
   
'sphinx.ext.autodoc',
   
'sphinx.ext.doctest',
   
'sphinx.ext.napolean',
]

This happens if I use Sphinx 1.4.1 installed from Anaconda or if I use the more recent 1.4.4 installed from pip. Does anyone know what the problem might be? Do I have to recreate the Makefile if I added sphinx.ext.napolean to the extensions variable after I created conf.py and the Makefile with sphinx.quickstart?

Thanks!
kmd

Daniele Zambelli

unread,
Jul 11, 2016, 5:39:55 AM7/11/16
to sphinx...@googlegroups.com
2016-07-11 9:38 GMT+02:00 Kyle Douglass <kyle.m....@gmail.com>:
> The problem is, I can find Napolean inside my site-packages for the
> DataSTORM environment:
>
> (DataSTORM)douglass@lebpc18:~$ ls
> ~/anaconda3/envs/DataSTORM/lib/python3.5/site-packages/sphinx/ext/na
> poleon/
> docstring.py __init__.py iterators.py __pycache__

napole<o>n!?

--

Daniele

www.fugamatematica.blogspot.com

giusto!
nel verso
forse è perché non guardiamo le cose
Quando non ci capiamo,

Kyle Douglass

unread,
Jul 11, 2016, 9:56:44 AM7/11/16
to sphinx-users, daniele....@gmail.com
Lol, thanks Daniele :)

I'm slightly embarrassed...
Reply all
Reply to author
Forward
0 new messages