NCAR / geocat-examples

GeoCAT-examples provides a gallery of visualization examples demonstrating how to reproduce plots from NCL Applications scripts with packages in Python. It also includes some longer form examples demonstrating how to use functionality from various GeoCAT packages.
https://geocat-examples.readthedocs.io
Apache License 2.0
66 stars 42 forks source link

sphinx-book-theme is failing with sphinx 7 #541

Closed kafitzgerald closed 1 year ago

kafitzgerald commented 1 year ago

As seen in the CI failure on PR #540.

Error:

Exception occurred: File "/home/runner/micromamba/envs/geocat-examples/lib/python3.8/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-spmyomgq.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! make: *** [Makefile:20: html] Error 2 writing output... [ 2%] gallery-geocat-comp/comp_only/sg_execution_times Error: Process completed with exit code 2.

See the CI failure here: https://github.com/NCAR/geocat-examples/actions/runs/6268815224/job/17024348024 Related issue on the theme repo here: https://github.com/executablebooks/sphinx-book-theme/issues/749

kafitzgerald commented 1 year ago

Ok, so it looks like this is happening here because we explicitly install sphinx as well as the sphinx-book-theme (the newer versions on conda-forge do limit the version). Hopefully cleaning up the environment file should help.