GithubHelp home page GithubHelp logo

Comments (7)

olivo68 avatar olivo68 commented on June 12, 2024 2

@kvos the test was successful, installation did not return any error message and I could successfully run the example file example_jupyter.ipynb.
For completeness this installation was done under OSX 10.13.6 and using conda version 4.5.12.

I am now ready to test the code on my own project. Thank you very much for the rapid and exhaustive support.
Marco

from coastsat.

kvos avatar kvos commented on June 12, 2024

Hi Marco,

You are right it seems like the conda-forge OSX packages have been updated and some of the ones that are in the requirements file are obsolete now and can't be find in https://conda.anaconda.org/conda-forge/osx-64/.

I will update the requirements file as soon as I get a Mac in my hands (not a Mac user). Hopefully in the next couple of days. Maybe @chrisleaman has CoastSat running on Mac?

In the meanwhile, you can remove the URLs of the 5 missing packages (proj4, hdf5, postgresql, libgdal and gdal) from the requirements .txt file and run that command again (conda install --name coastsat --file requirements_osx64.txt). Then you can install the missing packages separately by running: conda install name_of_the_package.

from coastsat.

chrisleaman avatar chrisleaman commented on June 12, 2024

@kvos, @olivo68 - I can have a look at this and test on my mac in the next day. My feeling is we should have a single environment.yml with the dependencies pinned to a specific version, but I think @kvos had some trouble making this work over multiple platforms. Will get back to you soon.

from coastsat.

olivo68 avatar olivo68 commented on June 12, 2024

I followed @kvos suggestion and installed the packages manually. However gdal finds some conflict. I checked the web and It is not clear how to solve them. I will try. Thanks for your support.
Marco

(coastsat) CricetoVolante:requirements olivo$ conda install gdal
Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:

  • conda-forge/osx-64::expat==2.2.5=hfc679d8_2
  • conda-forge/osx-64::kealib==1.4.10=heffcb4b_1
  • defaults/osx-64::sip==4.19.8=py36h0a44026_0

from coastsat.

chrisleaman avatar chrisleaman commented on June 12, 2024

Hi @olivo68,

Can you copy paste this code into a new file called environment.yml:

channels:
  - defaults
  - conda-forge
dependencies:
  - python=3.7
  - numpy=1.16.3
  - matplotlib=3.0.3
  - earthengine-api=0.1.173
  - gdal=2.3.3
  - pandas=0.24.2
  - geopandas=0.4.1
  - pytz=2019.1
  - scikit-image=0.15.0
  - geos=3.7.1
  - scikit-learn=0.20.3
  - shapely=1.6.4
  - simplekml=1.3.0
  - scipy=1.2.1
  - spyder=3.3.4
  - notebook=5.7.8

Then, try create the environment by running the following command:

conda env create -f environment.yml -n coastsat

You should be able to then activate the environment by using:

conda activate coastsat

This worked for me, testing on Windows and Mac. Can you let us know if this also works for you and we will update the repo with this change.

from coastsat.

kvos avatar kvos commented on June 12, 2024

thanks to @chrisleaman who solved this issue!

from coastsat.

kvos avatar kvos commented on June 12, 2024

I have merged these changes into the master, issue resolved.

from coastsat.

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.