Skip to content

Commit a31261c

Browse files
committed
fix: pin pyarrow version to resolve datasets compatibility
- Add pyarrow >= 8.0.0, < 21.0.0 constraint to pyproject.toml and requirements-dev.txt - Fixes 'PyExtensionType' AttributeError when importing datasets - PyArrow 21.0.0 removed PyExtensionType, breaking datasets==2.14.5 compatibility - Ensures stable test environment and prevents import errors
1 parent 1ed7ffd commit a31261c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ dependencies = [
4545
"pytorch-lightning",
4646
"transformers==4.39.3",
4747
"datasets==2.14.5",
48+
"pyarrow >= 8.0.0, < 21.0.0",
4849
"evaluate==0.4.0",
4950
"bitsandbytes==0.41.1",
5051
"sentencepiece",

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ pre-commit
22
pytest
33
autoflake
44
absolufy-imports
5+
pyarrow >= 8.0.0, < 21.0.0

0 commit comments

Comments
 (0)