Error in openFeather(path) : Invalid: Not a feather file
See original GitHub issueWhen exporting the database to feather format, e.g. via
$ abc-export --db test.db --out test.feather --format feather --generation all
and importing in R via
> library('feather')
> data = read_feather('/tmp/test.feather')
we get
Error in openFeather(path) : Invalid: Not a feather file
this happens only for some versions, e.g. pyabc 0.10.3, pandas 1.0.4, R 3.6.3.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
R cannot read Python Pandas dataframe saved in feather format
But R always throws the error "Error in openFeather(path): Invalid: Not a feather file Traceback: read_feather("./aFolder/dfwin.feather") ...
Read more >Leo Kiernan on Twitter: "If anyone has got stuck using #feather ...
If anyone has got stuck using #feather files to work across ... the error "Error in openFeather(path): Invalid: Not a feather file Traceback:...
Read more >Developers - Another CRAN release needed: not compatible with ...
The current CRAN feather package is saying valid feather files are not valid because the current CRAN arrow package is ahead of it....
Read more >Feather File Format — Apache Arrow v10.0.1
Feather is a portable file format for storing Arrow tables or data frames (from languages like Python or R) that utilizes the Arrow...
Read more >Read_feather() function error - Intro to Machine Learning (2018)
pd.read_feather('/home/hamede/fastai/data/tmp/bulldozers-raw') ... python3.6/site-packages/pandas/io/feather_format.py in read_feather(path, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Here is a work-around, as I encounter this issue even though I am using the latest arrow(2.0.0)/feather(0.3.5) packages in R. Using pyarrow(2.0.0) one can read and rewrite the feather file in “version 1”, which is then readable in R.
import pyarrow.feather as feather
feather_db = feather.read_feather('my_db.feather')
feather.write_feather(feather_db, 'my_db_v1.feather', version=1)
The feather format appears to be somewhat cumbersome, with different tools implementing/supporting different versions etc… Not sure what lead to this error, but just to recapitulate a few options:
abc-export
) and then applypandas.to_feather(filename, version=1)
.feather::read_feather
orarrow::read_feather
can be used, with the latter in particular for version 1 exports.