-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'pyarrow.lib' has no attribute 'ListViewType' #6985
Comments
Please note that the error is raised just at import: import pyarrow.parquet as pq Therefore it must be caused by some problem with your pyarrow installation. I would recommend you uninstall and install pyarrow again. I also see that it seems you use conda to install pyarrow. Please note that pyarrow offers 3 different packages in conda-forge: https://arrow.apache.org/docs/python/install.html#using-conda
Please, make sure you install the right one: I guess it is either |
I have same issue, please downgrade pyarrow==15.0.2, it seem datasets library need to be fix |
It is not a problem with the The error reported here is raised when importing pyarrow.parquet:
This can only be explained if pyarrow was not properly installed. If the user just installed
|
I'm still seeing the same issue on datasets version 2.20.0. I installed pyarrow version 17.0.0 with |
@RenaLu As of UTC time 07/27/2024 23:20:00, I hit the same issue and reinstalling |
I can confirm @albertvillanova's analysis & suggestion - I suspect this is because pyarrow was initially installed as a pandas extra @RenaLu did you uninstall pyarrow between changing versions? |
After trying all the above combinations and failing, running the following in the notebook fixed the error!! |
If on colab, remember to restart the runtime so the new pyarrow is imported. I also upgraded pip which is recommended in pyarrow's installation instructions. |
fixed doing this: !pip install --upgrade datasets !pip show pyarrow Import necessary librariesfrom datasets import load_dataset |
but now i cant run test, so i remove it, ERROR: Could not find a version that satisfies the requirement pyarrow.parquet (from versions: none) |
I have the same question right now, python3.12 and transformers4.44.2, I have not fixed it |
Describe the bug
I have been struggling with this for two days, any help would be appreciated. Python 3.10
setfit: 1.0.3
transformers: 4.41.2
lingua-language-detector: 2.0.2
polars: 0.20.31
lightning: None
google-cloud-bigquery: 3.24.0
shapely: 2.0.4
pyarrow: 16.0.0
Steps to reproduce the bug
I have tried all version combinations for Dataset and Pyarrow, the all have the same error since a few days ago. This is accross multiple scripts I have.
Expected behavior
Just ron normally.
Environment info
3.10
The text was updated successfully, but these errors were encountered: