Skip to content

Commit c6c78e5

Browse files
xehuclaude
andcommitted
Pin numpy<2 in RTD pre_install to fix spacy model download
The pre_install step installed spacy==3.7.2 in isolation, before the numpy<2.0.0 constraint in requirements.txt applied. pip then resolved numpy 2.x, which is ABI-incompatible with spacy 3.7.2's numpy-1.x-built wheels, causing `python -m spacy download en_core_web_sm` to crash on import and failing the Read the Docs build. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 5eb99c0 commit c6c78e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build:
1616
# golang: "1.19"
1717
jobs:
1818
pre_install: # Stuff in src/requirements.txt depends on en_core_web_sm, which in turn depends on spacy
19-
- pip install spacy==3.7.2
19+
- pip install "numpy<2.0.0" "spacy==3.7.2"
2020
- bash -c "python3 -m spacy download en_core_web_sm"
2121
post_install: # Install NLTK resources after the install step
2222
- python3 -m nltk.downloader nps_chat

0 commit comments

Comments
 (0)