Skip to content

Commit 5a6d2dc

Browse files
davanstrienclaude
andauthored
ocr: pin datasets>=4.0.0 in the 9 recipes that left it unpinned (#70)
An unpinned "datasets" dep lets the resolver backtrack to pre-2.15 releases that still use pa.PyExtensionType, which modern pyarrow has removed — the job then crashes at import, before inference (see davanstrien/ocr-bench#18 for a report against dots-ocr.py). The other 17 recipes already pin datasets>=4.0.0; this aligns the remaining 9. Resolution verified clean for all nine with uv lock --script. Claude-Session: https://claude.ai/code/session_01FaJ84bsoBpgVXocRzSJ6N5 Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent c47cd02 commit 5a6d2dc

9 files changed

Lines changed: 9 additions & 9 deletions

ocr/deepseek-ocr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# /// script
22
# requires-python = ">=3.11"
33
# dependencies = [
4-
# "datasets",
4+
# "datasets>=4.0.0",
55
# "huggingface-hub",
66
# "pillow",
77
# "torch",

ocr/dots-mocr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# /// script
22
# requires-python = ">=3.11"
33
# dependencies = [
4-
# "datasets",
4+
# "datasets>=4.0.0",
55
# "huggingface-hub",
66
# "pillow",
77
# "vllm>=0.15.1",

ocr/dots-ocr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# /// script
22
# requires-python = ">=3.11"
33
# dependencies = [
4-
# "datasets",
4+
# "datasets>=4.0.0",
55
# "huggingface-hub",
66
# "pillow",
77
# "vllm>=0.15.1",

ocr/falcon-ocr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# /// script
22
# requires-python = ">=3.11"
33
# dependencies = [
4-
# "datasets",
4+
# "datasets>=4.0.0",
55
# "huggingface-hub",
66
# "pillow",
77
# "torch>=2.5",

ocr/firered-ocr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# /// script
22
# requires-python = ">=3.11"
33
# dependencies = [
4-
# "datasets",
4+
# "datasets>=4.0.0",
55
# "huggingface-hub",
66
# "pillow",
77
# "vllm>=0.15.1",

ocr/lighton-ocr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# /// script
22
# requires-python = ">=3.11"
33
# dependencies = [
4-
# "datasets",
4+
# "datasets>=4.0.0",
55
# "huggingface-hub",
66
# "pillow",
77
# "vllm",

ocr/olmocr2-vllm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# /// script
22
# requires-python = ">=3.11"
33
# dependencies = [
4-
# "datasets",
4+
# "datasets>=4.0.0",
55
# "huggingface-hub",
66
# "pillow",
77
# "vllm",

ocr/paddleocr-vl-1.5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# /// script
22
# requires-python = ">=3.11"
33
# dependencies = [
4-
# "datasets",
4+
# "datasets>=4.0.0",
55
# "huggingface-hub",
66
# "pillow",
77
# "torch",

ocr/smoldocling-ocr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# /// script
22
# requires-python = ">=3.11"
33
# dependencies = [
4-
# "datasets",
4+
# "datasets>=4.0.0",
55
# "huggingface-hub",
66
# "pillow",
77
# "vllm",

0 commit comments

Comments
 (0)