Skip to content

Conversation

weiji14
Copy link
Member

@weiji14 weiji14 commented Sep 3, 2024

Try to fix incompatibility with sphinx=8.0 causing AttributeError: _CascadingStyleSheet is immutable with old versions of furo.

Full traceback error from Readthedocs:

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/63/lib/python3.10/site-packages/sphinx/events.py", line 100, in emit
    results.append(listener.handler(self.app, *args))
  File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/63/lib/python3.10/site-packages/furo/__init__.py", line 158, in _html_page_context
    _add_asset_hashes(
  File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/63/lib/python3.10/site-packages/furo/__init__.py", line 138, in _add_asset_hashes
    static[index].filename = _asset_hash(asset)  # type: ignore
  File "/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/63/lib/python3.10/site-packages/sphinx/builders/html/_assets.py", line 54, in __setattr__
    raise AttributeError(msg)
AttributeError: _CascadingStyleSheet is immutable

References:

Try to fix incompatibility with sphinx=8.0 causing `AttributeError: _CascadingStyleSheet is immutable` with old versions of furo.
@weiji14 weiji14 self-assigned this Sep 3, 2024
@weiji14 weiji14 marked this pull request as ready for review September 3, 2024 23:10
@weiji14 weiji14 merged commit 79e025d into main Sep 3, 2024
4 checks passed
@weiji14 weiji14 deleted the furo_2024.8.6 branch September 3, 2024 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant