Giter Site home page Giter Site logo

Comments (6)

xandrd avatar xandrd commented on July 25, 2024

The following packages have to be included
s3fs
h5netcdf
netCDF4
boto3

from kamodo.

darrendezeeuw avatar darrendezeeuw commented on July 25, 2024

These four are already in the setup.cfg, so they don't need to be in requirements.txt. Any pip install of Kamodo will check that the packages in setup.cfg are also installed. I can't reproduce this error.

from kamodo.

xandrd avatar xandrd commented on July 25, 2024

This is true, if Kamodo is installed via pip, the dependencies will be handled via setup.cfg. However, if Kamodo is cloned directly from the repository, then requrements.txt helps with installation of the necessary packages in the virtual environment.

As far as I know, there is no command that allows you to install dependency from setup.cfg, like pip install -r requirements.txt, after the project was cloned. The requirements.txt is useful for development, which is why I suggest to include this small change.

from kamodo.

darrendezeeuw avatar darrendezeeuw commented on July 25, 2024

You can install dependencies for a cloned project. I do it all the time. If you are in the top directory of the cloned project, just type 'pip install .' and it installs the project and all dependencies.

from kamodo.

xandrd avatar xandrd commented on July 25, 2024

Thanks for the suggestion! This solution works in the console, but require a bit extra work via IDE. I use PyCharm, which recognize requirements.txt by default.

So, the problem is solvable on my end with a workaround. However, I still don't understand why not just add those packages in requirements.txt?

from kamodo.

darrendezeeuw avatar darrendezeeuw commented on July 25, 2024

I don't see a big negative to modifying requirements.txt this way, though its not how I've understood the intent of this file. I will accept and then slightly modify your PR.

from kamodo.

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.