Comments (8)
The conda package 'eccodes' at the moment only includes the library itself; not its Python interface. This is sufficient to make dependencies, such as cfgrib, Magics and Metview work. To use the low-level Python API you need to install it with "pip install eccodes". Very soon the Python interface should be part of the conda install.
from eccodes-python.
conda install eccodes
Doesn't work for me at all. I installed eccodes via pip, as you propsed.
python -m eccodes selfcheck
returns the same error: RuntimeError: Could not load the ecCodes library!
However
python -m cfgrib selfcheck
returns
Found: ecCodes v2.17.0.
Your system is ready.
from eccodes-python.
Sorry, took me a while to get a Windows machine to test. For me eccodes and cfgrib work. You say "conda install eccodes - Doesn't work for me at all." What does not work? Do you get an error when you run the install command?
from eccodes-python.
conda install eccodes
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- eccodes
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
from eccodes-python.
As with 'cfgrib' (ecmwf/cfgrib#136) 'eccodes' is only available from the conda-forge repo. As described on https://github.com/ecmwf/eccodes-python, you can install eccodes with "conda install -c conda-forge eccodes".
from eccodes-python.
With "conda install -c conda-forge eccodes" I have a very big error (like 1000+ lines) so I will paste only this:
Package anaconda-project conflicts for:
anaconda-navigator -> anaconda-project[version='>=0.4']
anaconda==2020.02 -> anaconda-project==0.8.4=py_0The following specifications were found to be incompatible with your CUDA driver:
- feature:/win-64::__cuda==10.1=0
- feature:|@/win-64::__cuda==10.1=0
Your installed CUDA driver is: 10.1
So this means I need other version of CUDA driver and anaconda?
from eccodes-python.
I tried various versions and combinations of packages under Windows but I am not able to reproduce your error. A bit googling showed me that others (unrelated to eccodes) have challenges with conda and cuda. Could you try an conda environment without cuda?
from eccodes-python.
It seems like it has conflict with everything:
Package scikit-learn conflicts for:
anaconda==2020.02 -> scikit-learn==0.22.1[build='py37h6288b17_0|py36h6288b17_0|py38h6288b17_0']
nltk -> scikit-learn
Package pyepsg conflicts for:
iris -> cartopy[version='>=0.14'] -> pyepsg
cartopy -> pyepsg
Package liblief conflicts for:
py-lief -> liblief==0.9.0[build='ha925a31_3|ha925a31_2|ha925a31_0']
anaconda==2020.02 -> liblief==0.9.0=ha925a31_2
conda-build -> py-lief -> liblief==0.9.0[build='ha925a31_3|ha925a31_2|ha925a31_0']
Package brotlipy conflicts for:
requests -> urllib3[version='>=1.21.1,<1.26,!=1.25.0,!=1.25.1'] -> brotlipy[version='>=0.6.0']
urllib3 -> brotlipy[version='>=0.6.0']
Package owslib conflicts for:
iris -> cartopy[version='>=0.14'] -> owslib
cartopy -> owslib
Package pathtools conflicts for:
anaconda==2020.02 -> pathtools==0.1.2=py_1
anaconda==2020.02 -> watchdog==0.10.2=py36_0 -> pathtools[version='>=0.1.1']
spyder -> watchdog -> pathtools[version='>=0.1.1']
watchdog -> pathtools[version='>=0.1.1']
Package gmpy2 conflicts for:
sympy -> mpmath[version='>=0.19'] -> gmpy2
mpmath -> gmpy2
List like above is very long (over 6000 lines).
You think total reinstalling whole conda environment can help?
from eccodes-python.
Related Issues (20)
- Loading eccodes on MacOS with M1 chip fails with OSError HOT 2
- Unexpected behavior if not all GRIB messages in a file are read HOT 1
- data file tiggelam_cnmc_sfc.grib2 not included in released tar file eccodes-1.4.0.tar.gz HOT 7
- Can eccodes decode buffr radar image? HOT 6
- When the package ecmwflibs is available, ECCODES_DEFINITION_PATH is removed after `from gribapi import *` HOT 13
- open up discussion tab on github?
- Please use the warnings library for selfcheck HOT 6
- failing tests due to missing sample file. HOT 1
- read data from bytes object HOT 2
- Reading NCEP BUFR with Local Tables HOT 2
- Please support Python 3.10 (and 3.11) HOT 2
- Add support for `GRIB_TYPE_BYTES` to `codes_get_native_type` and `codes_get_array` HOT 4
- `codes_get` silently returns `None` for unsupported key types HOT 3
- Please support Python 3.11 HOT 1
- Latitude/longitude grid inconsistent behavior between GRIB1 and GRIB2 HOT 5
- Add method to access the result of the json bufr_dump HOT 5
- Update min_recommended_version for eccodes HOT 3
- Enabling thread safety using pip HOT 2
- aarch64 supports HOT 4
- 1.7.0: build fails with gcc error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eccodes-python.