Datasets: On loading a metric from datasets, I get the following error

Created on 5 Nov 2020  路  1Comment  路  Source: huggingface/datasets

from datasets import load_metric

metric = load_metric('bleurt')

Traceback:
210 class _ArrayXDExtensionType(pa.PyExtensionType):
211
212 ndims: int = None

AttributeError: module 'pyarrow' has no attribute 'PyExtensionType'

Any help will be appreciated. Thank you.

Most helpful comment

Hi ! We support only pyarrow > 0.17.1 so that we have access to the PyExtensionType object.
Could you update pyarrow and try again ?

pip install --upgrade pyarrow

>All comments

Hi ! We support only pyarrow > 0.17.1 so that we have access to the PyExtensionType object.
Could you update pyarrow and try again ?

pip install --upgrade pyarrow
Was this page helpful?
0 / 5 - 0 ratings

Related issues

HanGuo97 picture HanGuo97  路  4Comments

ratthachat picture ratthachat  路  6Comments

david-waterworth picture david-waterworth  路  3Comments

elyase picture elyase  路  7Comments

carlos-aguayo picture carlos-aguayo  路  6Comments