You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
../../../micromamba/envs/test/lib/python3.11/site-packages/sphinx/events.py:97: in emit
results.append(listener.handler(self.app, *args))
../../../micromamba/envs/test/lib/python3.11/site-packages/pydata_sphinx_theme/pygment.py:81: in overwrite_pygments_css
style_name = app.builder.theme.get_options()[style_key]
E KeyError: 'pygment_light_style'
The above exception was the direct cause of the following exception:
sphinx_gallery/tests/test_gen_gallery.py:493: in test_show_memory_callable
sphinx_app = sphinx_app_wrapper.build_sphinx_app()
sphinx_gallery/tests/conftest.py:179: in build_sphinx_app
app.build(*args, **kwargs)
../../../micromamba/envs/test/lib/python3.11/site-packages/sphinx/application.py:353: in build
self.events.emit('build-finished', None)
../../../micromamba/envs/test/lib/python3.11/site-packages/sphinx/events.py:108: in emit
raise ExtensionError(
E sphinx.errors.ExtensionError: Handler <function overwrite_pygments_css at 0x11884d6c0> for event 'build-finished' threw an exception (exception: 'pygment_light_style')
Note pygment.overwrite_pygments_css in pydata-sphinx-theme is connected to 'build-finished' (ref)
Tested and fine with Sphinx 7.3.0 and 7.3.1. If I uninstall pydata-sphinx-theme its also fine.
Describe the bug
Noticed with Sphinx >7.3.2 and
pydata-sphinx-theme
.sphinx-quickstart
pydata-sphinx-theme
is installed in envmake html
and I get the following error:full error message from a test failure (from sphinx-gallery/sphinx-gallery#1243):
Note
pygment.overwrite_pygments_css
inpydata-sphinx-theme
is connected to 'build-finished' (ref)Tested and fine with Sphinx 7.3.0 and 7.3.1. If I uninstall
pydata-sphinx-theme
its also fine.Could it be related to: 982681b ?
How to Reproduce
sphinx-quickstart
, includepydata-sphinx-theme
in envmake html
Environment Information
Sphinx extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: