Code Monkey home page Code Monkey logo

Comments (3)

floriankrb avatar floriankrb commented on June 18, 2024

You do not have to install any dependencies with conda. pip install climetlab should work out of the box.

Depending on the other packages that you have, depending on their versions, depending on your system, depending when/how you will update them, you may want to install some dependencies with conda to solve dependency issues. "Some dependencies" means here "some of the packages in the setup.py"

install_requires += [

from climetlab.

denis-bz avatar denis-bz commented on June 18, 2024

Hi @floriankrb,
did you try import eccodes or import xarray after pip-only install ?

ecmwflibs/__init__.py:142: UserWarning: ecmwflibs universal: cannot find a library called eccodes
  warnings.warn(f"ecmwflibs universal: cannot find a library called {name}")

The problem is that pip install eccodes installs .py with no error, but not libeccodes.dylib;
for that, you have to either get it from conda, or build it from source
and setenv ECCODES_DIR /opt/miniconda3 or the like.

The Right Thing to do would be to build libeccodes.dylib under eccodes/.dylibs, like numpy; see
https://stackoverflow.com/questions/47380150/dealing-with-dylibs-when-distributing-python-packages
https://github.com/matthew-brett/delocate

What do you think ?

from climetlab.

floriankrb avatar floriankrb commented on June 18, 2024

These are the installations supported directly by climetlab https://github.com/ecmwf/climetlab/actions/runs/2550905617
they are tested for each release under standard environments with github actions.

I do not know which platform you are using. Guessing from the fact that you got ecmwflibs universal, I am assuming this is not vanilla linux, nor macos, nor windows, or that you have special tweaks. In such cases, yes, you can install eccodes differently (conda, build from source, other), and make sure ecmwflibs finds it.

from climetlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.