-
Notifications
You must be signed in to change notification settings - Fork 84
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
0.17.1: documentation build fails #474
Comments
@kloczek is this still a problem for the latest |
I've reported issue against latest 0.17.1 and I just checked there is no any new version so .. yes it still the issue 😋 No I have no installed --- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,6 +1,8 @@
# Configuration file for the Sphinx documentation builder.
# https://www.sphinx-doc.org/en/master/usage/configuration.html
import os
+import sys
+sys.path.insert(0, os.path.abspath(".."))
# -- Project information ----------------------------------------------------- to allow sphinx find |
In other words that patch guarantees that documentation is generated against in source tree |
Ah, I'm following — and the docs don't build locally for me either, although due to a different error. With a fresh solve, I ran into #486 and also noted that the coconut dependency is pulling in a poorly maintained cpyparsing library. I'll make another PR in future to propose a different kernel instead of coconut. |
Just tested that PR on top of the release and documentation build still fails. + /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man
Running Sphinx v6.1.3
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/cmd/build.py", line 279, in build_main
app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 223, in __init__
self.setup_extension(extension)
File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 398, in setup_extension
self.registry.load_extension(self, extname)
File "/usr/lib/python3.8/site-packages/sphinx/registry.py", line 456, in load_extension
metadata = setup(app)
File "/home/tkloczko/rpmbuild/BUILD/MyST-NB-0.17.1/myst_nb/__init__.py", line 8, in setup
from .sphinx_ext import sphinx_setup
File "/home/tkloczko/rpmbuild/BUILD/MyST-NB-0.17.1/myst_nb/sphinx_ext.py", line 23, in <module>
from myst_nb.sphinx_ import (
File "/home/tkloczko/rpmbuild/BUILD/MyST-NB-0.17.1/myst_nb/sphinx_.py", line 16, in <module>
from myst_parser.mdit_to_docutils.sphinx_ import SphinxRenderer, create_warning
ImportError: cannot import name 'create_warning' from 'myst_parser.mdit_to_docutils.sphinx_' (/usr/lib/python3.8/site-packages/myst_parser/mdit_to_docutils/sphinx_.py)
Exception occurred:
File "/home/tkloczko/rpmbuild/BUILD/MyST-NB-0.17.1/myst_nb/sphinx_.py", line 16, in <module>
from myst_parser.mdit_to_docutils.sphinx_ import SphinxRenderer, create_warning
ImportError: cannot import name 'create_warning' from 'myst_parser.mdit_to_docutils.sphinx_' (/usr/lib/python3.8/site-packages/myst_parser/mdit_to_docutils/sphinx_.py)
The full traceback has been saved in /tmp/sphinx-err-kdukc65s.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks! [tkloczko@pers-jacek SPECS]$ cat /tmp/sphinx-err-kdukc65s.log
# Platform: linux; (Linux-6.1.10-200.fc37.x86_64-x86_64-with-glibc2.34)
# Sphinx version: 6.1.3
# Python version: 3.8.16 (CPython)
# Docutils version: 0.19
# Jinja2 version: 3.1.2
# Pygments version: 2.14.0
# Last messages:
# Loaded extensions:
# Traceback:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sphinx/cmd/build.py", line 279, in build_main
app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 223, in __init__
self.setup_extension(extension)
File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 398, in setup_extension
self.registry.load_extension(self, extname)
File "/usr/lib/python3.8/site-packages/sphinx/registry.py", line 456, in load_extension
metadata = setup(app)
File "/home/tkloczko/rpmbuild/BUILD/MyST-NB-0.17.1/myst_nb/__init__.py", line 8, in setup
from .sphinx_ext import sphinx_setup
File "/home/tkloczko/rpmbuild/BUILD/MyST-NB-0.17.1/myst_nb/sphinx_ext.py", line 23, in <module>
from myst_nb.sphinx_ import (
File "/home/tkloczko/rpmbuild/BUILD/MyST-NB-0.17.1/myst_nb/sphinx_.py", line 16, in <module>
from myst_parser.mdit_to_docutils.sphinx_ import SphinxRenderer, create_warning
ImportError: cannot import name 'create_warning' from 'myst_parser.mdit_to_docutils.sphinx_' (/usr/lib/python3.8/site-packages/myst_parser/mdit_to_docutils/sphinx_.py) Just in case I'm usimg BTW is it possible to add that conf.,py patch to you git tee? (feel free to commit it or let me know if you want me to create PR) |
What's wrong with an editable install?
Line 42 in 385c4a7
|
As I wrote with such patch it is possible to build documentation without remeber to do any operations before (it can be done just after clone repo).
OK. Do you have any plans to support 1.0.0? 🤔 (just asking ..) |
Will close this ticket as 1.0.0 has been released. |
Describe the bug
context
Generating
myst-nb
sphinx docuemtationexpectation
It should be possible to generate documentation.
bug
problem
This is a problem for people doing ___ because ___.
Reproduce the bug
Just run
sphinx-build -n -T docs
List your environment
List of modules installed in build env
The text was updated successfully, but these errors were encountered: