-
Notifications
You must be signed in to change notification settings - Fork 36
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
OSError: Unable to read attribute (No appropriate function for conversion path) #16
Comments
Huh, this is a curious one. Can you share a problematic files? Or the name and/or value of the problematic variable from using pdb? (e.g., Note that your h5py example is not entirely analogous because printing a variable in h5py does not load it's attributes. If |
Ah good point - The file in question is this and the crash occurs reading:
|
Both
|
OK I will open the issue there thanks for looking at this
|
So, I've investigated this problem a bit and I found that reading |
This bug report in netCDF-C describes things more fully: Unidata/netcdf-c#298 But if only h5py supported reading fixed length UTF-8, this would be much less painful. |
The fix for this (to avoid making files that h5netcdf can't read) was just merged upstream in netcdf-c. It looked like getting a fix for this into h5py would have been difficult, so I'm going to close this issue for now -- hopefully the offending files will eventually stop being created, as users upgrade their netCDF installations. |
I'm trying to open a netCDF4 file created by Xarray (made by opening a netCDF3 file and re-saving as netCDF4 using `.to_netcdf) and I get the error below.
By contrast, using h5py directly:
Works fine. This error carries through to xarray itself if I try to use the h5netcdf backend.
The text was updated successfully, but these errors were encountered: