Datasets:
Commit
•
16bcfdf
1
Parent(s):
73de627
log pyarrow minimum version not found
Browse files- europeana_newspapers.py +7 -2
europeana_newspapers.py
CHANGED
@@ -20,9 +20,14 @@ import pyarrow.parquet as pq
|
|
20 |
from datasets import Value, Sequence
|
21 |
import datasets
|
22 |
from datasets.config import PYARROW_VERSION
|
|
|
23 |
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
26 |
|
27 |
|
28 |
_DESCRIPTION = "TODO"
|
|
|
20 |
from datasets import Value, Sequence
|
21 |
import datasets
|
22 |
from datasets.config import PYARROW_VERSION
|
23 |
+
from datasets.utils.logging import get_logger
|
24 |
|
25 |
+
logger = get_logger(__name__)
|
26 |
+
|
27 |
+
if PYARROW_VERSION.major <= 6:
|
28 |
+
msg = f"pyarrow version >= 7 required for this loading script, you have {PYARROW_VERSION}"
|
29 |
+
logger.warning(msg)
|
30 |
+
raise RuntimeError(msg)
|
31 |
|
32 |
|
33 |
_DESCRIPTION = "TODO"
|