pydata-sphinx-theme icon indicating copy to clipboard operation
pydata-sphinx-theme copied to clipboard

Cannot be built with JSON builder

Open av8r opened this issue 1 year ago • 1 comments

Hi,

How to repeat. 1/ Create a new sphinx project with: sphinx-quickstart -p test -a test -q 2/ Use pydata_sphinx_theme: sed -i 's/alabaster/pydata_sphinx_theme/' conf.py 3/ Build sphinx with json builder: make json

Result: Exception occurred: File "/usr/lib/python3.10/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.class.name} ' TypeError: Object of type _lru_cache_wrapper is not JSON serializable

4/ Quick fix: lru_cache from toctree.py ( sed -i '/lru_cache/d' toctree.py )

av8r avatar Jun 09 '23 13:06 av8r