Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'Directive' #50

Closed
suvarchal opened this issue May 23, 2018 · 3 comments
Closed

ImportError: cannot import name 'Directive' #50

suvarchal opened this issue May 23, 2018 · 3 comments
Labels

Comments

@suvarchal
Copy link
Contributor

this issue prevents me making docs with nbsite, for testing i cloned geoviews which seems to be using nbsite for its docs.

cd doc
sphinx-build . _build

Raises error

Configuration error:
There is a programable error in your configuration file:

Traceback (most recent call last):
File "/home/user/miniconda3/lib/python3.6/site-packages/sphinx/config.py", line 161, in init
execfile_(filename, config)
File "/home/user/miniconda3/lib/python3.6/site-packages/sphinx/util/pycompat.py", line 150, in execfile_
exec_(code, _globals)
File "conf.py", line 3, in
from nbsite.shared_conf import *
File "/home/user/miniconda3/lib/python3.6/site-packages/nbsite/shared_conf.py", line 5, in
from nbsite import nbbuild
File "/home/user/miniconda3/lib/python3.6/site-packages/nbsite/nbbuild.py", line 30, in
from sphinx.util.compat import Directive
ImportError: cannot import name 'Directive'

My sphinx version is 1.7.4 , on googling it i also found someone else has it.

@philippjfr
Copy link
Contributor

For now nbsite does not work with sphinx >= 1.7, we're currently working with 1.6.7.

@jlstevens jlstevens added the bug label May 23, 2018
@jlstevens
Copy link
Contributor

Marking this as a bug as I do think we should support sphinx 1.7+ ASAP.

@ceball
Copy link
Member

ceball commented May 23, 2018

Yes, sorry for the trouble. However, this issue is a duplicate of #35.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants