Open brian-rose opened 1 month ago
I was able to reproduce the same error locally on the Cookbook Template repo with
conda create --name testlink jupyter-book -c conda-forge
conda activate testlink
jupyter-book build --builder linkcheck .
I wonder if this is related to the fact that conda-forge is now installing Python 3.13 by default.
Suspicion confirmed. When I did this, the link-checker worked normally:
conda create --name testlink-py12 jupyter-book python=3.12 -c conda-forge
conda activate testlink-py12
jupyter-book build --builder linkcheck .
Something upstream in JupyterBook / sphinx must be incompatible with Python 3.13. Would be worth digging a little to see if this has been flagged in the right places yet.
The quick fix would be to just add
python<3.13
to this line
But it would be best to track the issue properly so we can remove that version pin once it's resolved.
The link checker is working now! https://github.com/ProjectPythia/cookbook-template/actions/runs/11356548892
Keep this open until things are fixed upstream and the version pin can be removed.
Currently all link-checker runs are failing at run time with
Appears to be something broken in the Sphinx ecosystem.