You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "sl2902 (via GitHub)" <gi...@apache.org> on 2023/02/21 10:30:52 UTC
[GitHub] [arrow] sl2902 commented on issue #33412: [Python] pyarrow.lib.ArrowInvalid: Not a Feather V1 or Arrow IPC file
sl2902 commented on issue #33412:
URL: https://github.com/apache/arrow/issues/33412#issuecomment-1438235932
@asfimport
I receive the same error when reading a zstd compressed feather file. According to the Apache Arrow documentation, in V2, compression is supported. However, the following command
```
Python 3.8.3 (default, Jul 2 2020, 11:26:31)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow.feather as feather
>>> feather.read_feather("data/IPTC_subject_codes_test.feather.zst", compression="zstd")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: read_feather() got an unexpected keyword argument 'compression'
>>> feather.read_feather("data/IPTC_subject_codes_test.feather.zst")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/home/.local/share/virtualenvs/RD17147-yQ3Y_lVD/lib/python3.8/site-packages/pyarrow/feather.py", line 231, in read_feather
return (read_table(
File "/Users/home/.local/share/virtualenvs/RD17147-yQ3Y_lVD/lib/python3.8/site-packages/pyarrow/feather.py", line 256, in read_table
reader = _feather.FeatherReader(
File "pyarrow/_feather.pyx", line 79, in pyarrow._feather.FeatherReader.__cinit__
File "pyarrow/error.pxi", line 144, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Not a Feather V1 or Arrow IPC file
```
I can read an uncompressed file but I would like to take advantage of compression.
The version of pyarrow I have is 11.0.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org