sodri126 / netcdf4-python

Automatically exported from code.google.com/p/netcdf4-python
Other
0 stars 0 forks source link

Import Error with HDF5 version 1.8.10 #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile hdf5 version 1.8.10
2. run netCDF4 "python setup.py install"
3. attempt to import netCDF4

What is the expected output? What do you see instead?
No expected output, instead get this import error

ImportError: netCDF4 module must be linked against HDF5 version 1.8.4-patch1 or 
higher, got 1.8.10

What version of the product are you using? On what operating system?
netCDF4-1.0.1

Please provide any additional information below.
It appears that the __hdf5libversion__ and the __required_hdf5version__ 
variables are strings are used in the version comparison.  The problem appears 
to be that the string comparison does not work now that HDF5 is up to version 
1.8.10.
"1.8.10">"1.8.4" is FALSE

This would have worked in previous versions of HDF5 since 
"1.8.9">"1.8.4" is TRUE

Original issue reported on code.google.com by drjeremy...@gmail.com on 15 Nov 2012 at 7:04

GoogleCodeExporter commented 9 years ago
Ugh.  I've updated svn to remove this check.  Thanks.

Original comment by whitaker.jeffrey@gmail.com on 15 Nov 2012 at 7:13

GoogleCodeExporter commented 9 years ago
Thanks for the prompt update Jeff.  I really appreciate the work you are doing 
in the python arena ... I leverage python more and more every day in our 
meteorological research.

Original comment by drjeremy...@gmail.com on 15 Nov 2012 at 7:28

GoogleCodeExporter commented 9 years ago

Original comment by whitaker.jeffrey@gmail.com on 7 Mar 2013 at 11:42