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

Sphinx 7.x: ImportError: cannot import name 'setup_js_tag_helper' #31

Closed
ganto opened this issue Nov 11, 2023 · 2 comments
Closed

Sphinx 7.x: ImportError: cannot import name 'setup_js_tag_helper' #31

ganto opened this issue Nov 11, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ganto
Copy link
Owner

ganto commented Nov 11, 2023

Incus currently fails to build for Fedora Rawhide (40) on all architectures:

+ sphinx-build -c doc/ -b dirhtml doc/ doc/html/
Running Sphinx v7.2.6

Exception occurred:
  File "/usr/lib/python3.12/site-packages/notfound/extension.py", line 315, in setup
    from sphinx.builders.html import setup_js_tag_helper
ImportError: cannot import name 'setup_js_tag_helper' from 'sphinx.builders.html' (/usr/lib/python3.12/site-packages/sphinx/builders/html/__init__.py)
The full traceback has been saved in /tmp/sphinx-err-ze15izlu.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!
Using /builddir/build/BUILD/incus-0.2/_build/bin/incus to generate man pages.

I guess there is some breaking change in Sphinx. Fedora 39 still uses Sphinx v6.2.1.

@ganto
Copy link
Owner Author

ganto commented Nov 11, 2023

Seems to be an issue with the python3-sphinx-notfound-page RPM in combination with Sphinx >=7.2 (see readthedocs/sphinx-notfound-page#219). Fixed upstream in >=sphinx-notfound-page-1.0.0.

Unfortunately Fedora Rawhide still has 0.7.1-9. Fedora bug 2249216.

@ganto ganto added the bug Something isn't working label Nov 11, 2023
@ganto
Copy link
Owner Author

ganto commented Nov 17, 2023

@ganto ganto closed this as completed Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant