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

Build of 0.15.1-3 fails on: Building HTML documentation with Sphinx #1325

Open
3eka opened this issue Oct 24, 2023 · 1 comment
Open

Build of 0.15.1-3 fails on: Building HTML documentation with Sphinx #1325

3eka opened this issue Oct 24, 2023 · 1 comment

Comments

@3eka
Copy link

3eka commented Oct 24, 2023

Hi,

trying to build mydumper on OpenIndiana, GCC 12, and python-3.9:

...
[ 97%] Building HTML documentation with Sphinx
Traceback (most recent call last):
  File "/usr/bin/sphinx-build", line 5, in <module>
    from sphinx.cmd.build import main
  File "/usr/lib/python3.9/site-packages/sphinx/cmd/build.py", line 25, in <module>
    from sphinx.application import Sphinx
  File "/usr/lib/python3.9/site-packages/sphinx/application.py", line 43, in <module>
    from sphinx.registry import SphinxComponentRegistry
  File "/usr/lib/python3.9/site-packages/sphinx/registry.py", line 24, in <module>
    from sphinx.builders import Builder
  File "/usr/lib/python3.9/site-packages/sphinx/builders/__init__.py", line 26, in <module>
    from sphinx.util import import_object, logging, progress_message, rst, status_iterator
  File "/usr/lib/python3.9/site-packages/sphinx/util/rst.py", line 21, in <module>
    from jinja2 import Environment, environmentfilter
ImportError: cannot import name 'environmentfilter' from 'jinja2' (/usr/lib/python3.9/vendor-packages/jinja2/__init__.py)
gmake[2]: *** [docs/CMakeFiles/doc_html.dir/build.make:71: docs/CMakeFiles/doc_html] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:238: docs/CMakeFiles/doc_html.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

Looking at the error, seems that environmentfilter is missing in jinja2... Here versions:

:; pkg list jinja2 sphinx
NAME (PUBLISHER)                                  VERSION                    IFO
library/python/jinja2                             3.1.2-2023.0.0.0           i--
library/python/sphinx                             7.2.6-2023.0.0.0           i--

So: how I can pass building WITH HTML docs, using Sphinx (I know I can use -DBUILD_DOCS=OFF to avoid it...)?

Thanks for this excellent tool.
Regards.

@davidducos
Copy link
Member

Hi @3eka
I was trying to understand the issue and I found readthedocs/readthedocs.org#9038 and then I jumped to readthedocs/readthedocs.org#9037 (comment).
I might need to install sphinx to build the documentation and find this kind of issues.

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

No branches or pull requests

2 participants