question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find ECCODES_DEFINITON PATH using sample grib file in Windows

See original GitHub issue

Hi,

this might be related to #85 but I have following problem:

I installed eccodes and cfgrib via Miniconda on Windows (works without any problems). After that I wanted to try out to read the grib file with following:

import xarray as xr

ds = xr.open_dataset('era5-levels-members.grib', engine='cfgrib')
print(ds)

I get the following error message:

ECCODES ERROR   :  Unable to find boot.def. Context path=C:/bld/eccodes_1555087073004/_h_env/Library/share/eccodes/definitions

Possible causes:
- The software is not correctly installed
- The environment variable ECCODES_DEFINITION_PATH is defined but incorrect

ecCodes assertion failed: `0' in C:\bld\eccodes_1555087073004\work\src\grib_context.c:205

I tried to set explicit the ECCODES_DEFINITON_PATH to Miniconda3\Library\share\eccodes\definitions in the Windows System Environment Variables settings. Still does not work.

I don’t know if I am doing something wrong here by setting the path. Thanks for help & kind regards,

Marko

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
afDeathscythecommented, Jun 6, 2019

Ok can be closed, found out that I need to restart PyCharm that it is loaded into the PyCharm System Variables Environment^^

1reaction
afDeathscythecommented, Jul 30, 2020

Ok can be closed, found out that I need to restart PyCharm that it is loaded into the PyCharm System Variables Environment^^

i have the same issue. can you tell what did you do exactly to solve it?!

In Pycharm you can set Enviroment Variables in Edit Run Settings where it says PYTHONUNBUFFERED=1 for the program where you define e.g ECCODES_DEFINITON_PATH on the left and Miniconda3\Library\share\eccodes\definitions on the right and restart Pycharm.

Cheers,

Marko

Read more comments on GitHub >

github_iconTop Results From Across the Web

What are GRIB files and how can I read them
This example shows how to extract data from a GRIB file to generic text using ecCodes. Preparation: Get a computer running Linux; On...
Read more >
Windows cannot find 'file path of whatever I'm trying to
Hi, Installed windows 10 recently along with installing Office 2016. Since doing so there are large swathes of files which won't run or...
Read more >
ECCODES ERROR when opening .GRIB file in Spyder/Visual ...
I solved that problem just creating an environment variable called ECCODES_DEFINITION_PATH . You have to find the path to "definition" ...
Read more >
Fast Downloading of GRIB Files - Climate Prediction Center
Can't help with the last problem but downloading data in GRIB files can be made faster. Often people only need a few fields...
Read more >
cfgrib · PyPI
Python interface to map GRIB files to the NetCDF Common Data Model following the CF Convention using ecCodes.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found