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

AttributeError: 'BootstrapHTML5Translator' object has no attribute 'generate_targets_for_table' #749

Open
daquintero opened this issue Jul 13, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@daquintero
Copy link

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/

@daquintero daquintero added the bug Something isn't working label Jul 13, 2023
@welcome
Copy link

welcome bot commented Jul 13, 2023

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

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! 🎉

@daquintero
Copy link
Author

It had to do with Sphinx 7, works with sphinx 6

@coroa
Copy link

coroa commented Jul 19, 2023

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)

@daquintero
Copy link
Author

Sure, maybe just in case so the mantainers know when porting to 7 eventually.

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

2 participants