sphinx-book-theme
sphinx-book-theme copied to clipboard
AttributeError: 'BootstrapHTML5Translator' object has no attribute 'generate_targets_for_table'
Describe the bug
context When I do build via read the docs. I just changed from the alabaster theme to this one.
expectation I expected it to build to occur.
bug But instead it fails happens Here's an error message I ran into...
[Previous line repeated 2 more times]
File "/home/docs/checkouts/readthedocs.org/user_builds/piel/envs/latest/lib/python3.11/site-packages/docutils/nodes.py", line 191, in walkabout
visitor.dispatch_visit(self)
File "/home/docs/checkouts/readthedocs.org/user_builds/piel/envs/latest/lib/python3.11/site-packages/sphinx/util/docutils.py", line 572, in dispatch_visit
method(node)
File "/home/docs/checkouts/readthedocs.org/user_builds/piel/envs/latest/lib/python3.11/site-packages/pydata_sphinx_theme/bootstrap_html_translator.py", line 27, in visit_table
self.generate_targets_for_table(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'BootstrapHTML5Translator' object has no attribute 'generate_targets_for_table'
Exception occurred:
File "/home/docs/checkouts/readthedocs.org/user_builds/piel/envs/latest/lib/python3.11/site-packages/pydata_sphinx_theme/bootstrap_html_translator.py", line 27, in visit_table
self.generate_targets_for_table(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'BootstrapHTML5Translator' object has no attribute 'generate_targets_for_table'
The full traceback has been saved in /tmp/sphinx-err-g0ck6vdr.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>
problem This is a problem for people doing building this theme in recent environments.
Reproduce the bug
Go to https://readthedocs.org/projects/piel/builds/21295318/
It has the whole setup. It should work.
List your environment
https://readthedocs.org/projects/piel/builds/21295318/
Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:
It had to do with Sphinx 7, works with sphinx 6
I am encountering this issue with sphinx 7 on ubuntu as well (sphinx==7.0.1). I think it should be reopened (even though sphinx 6 is a good workaround)
Sure, maybe just in case so the mantainers know when porting to 7 eventually.