EarthObservation / RVT_py

Relief Visualization Toolbox in Python
Apache License 2.0
22 stars 6 forks source link

Conda channel rvtpy does not resolve rvt_py #15

Open tomkom opened 1 year ago

tomkom commented 1 year ago

I am encountering issues with the recommended conda-based install. Tested on MacOSX (M1), with conda 4.12.0.

Side note: trying this, following problems with QGIS 3.26.3 on the same system, when used using the plugin GUI - getting an error, without details of the problem. Trying from the processing toolkit works fine.

% conda install -c rvtpy rvt_py
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:

  - rvt_py

Current channels:

  - https://conda.anaconda.org/rvtpy/osx-arm64
  - https://conda.anaconda.org/rvtpy/noarch
  - https://repo.anaconda.com/pkgs/main/osx-arm64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-arm64
  - https://repo.anaconda.com/pkgs/r/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.
zm8597 commented 1 year ago

That is interesting it should be working, you can find the library here: https://anaconda.org/rvtpy/rvt_py I will investigate further and in the mean time you can try to create anaconda enviroment using enviroment.yml (https://github.com/EarthObservation/RVT_py/blob/master/environment.yml) conda env create --name envname --file=environments.yml

scw commented 3 months ago

The issue is that conda by default is platform specific, and the existing MacOS build is for x64 rather than ARM64. That said, the package itself is platform agnostic and can be built as a noarch package by adding the line noarch: python to the build block of the meta.yaml. I've done so and uploaded a build I can confirm works on MacOS ARM64 with conda install esri::rvt_py, happy to contribute a PR or other updates.

NejcCoz commented 3 months ago

Hi. At the moment we have no plans to support macOS features ourselves, but we welcome any contributions from users who solve these problems. So feel free to submit a PR, and we will be happy to look at any further updates you have. Do all your updates relate only to the conda package or have you also worked on the code itself?