-
Notifications
You must be signed in to change notification settings - Fork 259
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
Handle utf-8 netcdf.h from netcdf 4.3.1.1 in python3 #232
Comments
I'm looking at the version of netcdf.h in github master and I don't see any utf-8 characters in there. Building also works for me with both python2.7 and python3.3 (and all tests pass). I wonder where those non-ascii characters came from? Perhaps your netcdf.h is corrupted somehow? |
The file is utf-8:
the line is here:
My paste ere changed the character it seems - the original has a '.' in the middle of the line. I'll report that to netcdf. |
I see it now. I still don't understand why you're getting that error. python2.7 is happy to read that line in as a string without raising a UnicodeDecodeError for me (on MacOS and Ubuntu). Maybe it has something to do with the Fedora environment. It should be fixed in netcdf-c though. |
The header is now fixed in netcdf-c master. |
For the Fedora netcdf4-python package, we are building with python3 support. With netcdf 4.3.1.1 we are getting:
This is because netcdf.h is now a utf-8 file. Unfortunately I have not yet found a way to handle this that works with both python2 and python3.
The text was updated successfully, but these errors were encountered: