You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Worked fine on 0.9.8.5 version, however started throwing an AttributeError on the 0.9.9.0 one.
As an example: cfgrib.open_dataset(file_path, backend_kwargs={"filter_by_keys": {"numberOfPoints": 2556, "typeOfLevel": "hybrid", "edition": 2, "level": 128}})
Can't create file 'INDEX_FILE.idx'
Traceback (most recent call last):
File "../python/lib/python3.7/site-packages/cfgrib/messages.py", line 344, in from_indexpath_or_filestream
self = cls.from_filestream(filestream, index_keys)
File "../python/lib/python3.7/site-packages/cfgrib/messages.py", line 293, in from_filestream
for message in filestream:
File "../python/lib/python3.7/site-packages/cfgrib/messages.py", line 229, in __iter__
with multi_enabled(file):
File "../python/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "../python/lib/python3.7/site-packages/cfgrib/messages.py", line 51, in multi_enabled
eccodes.codes_grib_multi_support_reset_file(file)
AttributeError: module 'eccodes' has no attribute 'codes_grib_multi_support_reset_file'
Can't read index file 'INDEX_FILE.idx'
Traceback (most recent call last):
File "../python/lib/python3.7/site-packages/cfgrib/messages.py", line 353, in from_indexpath_or_filestream
index_mtime = os.path.getmtime(indexpath)
File "../python/lib/python3.7/genericpath.py", line 55, in getmtime
return os.stat(filename).st_mtime
FileNotFoundError: [Errno 2] No such file or directory: 'INDEX_FILE.idx'
Any idea on what might be the cause of that?
The text was updated successfully, but these errors were encountered:
nlhll
changed the title
AttributeError: module 'eccodes' has no attribute 'codes_grib_multi_support_reset_file' after the 0.9.9.0 releaseAttributeError: module 'eccodes' has no attribute 'codes_grib_multi_support_reset_file' after the 0.9.9.0 release
Apr 14, 2021
The latest version of cfgrib is compatible only with fairly new version of the eccodes python package, but I failed to add this minimum version in the setup.py. I'll add it and make a new release.
As a work-around you need to update the package with ecCodes python bindings depending on you install setup. This is different for pip, conda and other installation strategies.
Hi there,
Worked fine on 0.9.8.5 version, however started throwing an AttributeError on the 0.9.9.0 one.
As an example:
cfgrib.open_dataset(file_path, backend_kwargs={"filter_by_keys": {"numberOfPoints": 2556, "typeOfLevel": "hybrid", "edition": 2, "level": 128}})
Any idea on what might be the cause of that?
The text was updated successfully, but these errors were encountered: