-
Hi all, How would I include the maap.py pacakge in custom conda environment in DPS jobs? Registering algorithm through the DPS page: #!/bin/bash
# source activate base
basedir=$( cd "$(dirname "$0")" ; pwd -P)
conda env list
echo installing environment...
conda env create -f ${basedir}/environment.yml environment.yml was created using I followed the video walkthrough (MAAP UWG Workshop-20230615_113428-Meeting Recording.mp4) but it was not clear. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Noticed that the environment.yml script lists maap-py package under pip, but it is not available through pip. # source activate base
basedir=$( cd "$(dirname "$0")" ; pwd -P)
echo installing environment...
mamba env create -f ${basedir}/environment.yml
# Install the maap.py environment
source activate custom-env
git clone --single-branch --branch v3.0.1 https://github.com/MAAP-Project/maap-py.git ${basedir}
cd ${basedir}/maap-py
pip install -e . But i received the following error when registering algorithm: fatal: destination path '/app/biomass-gedi-conus' already exists and is not an empty directory.
biomass-gedi-conus/build-env.sh: line 11: cd: /app/biomass-gedi-conus/maap-py: No such file or directory
Obtaining file:///app
ERROR: file:///app does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
Removing intermediate container 938163f78943
The command '/bin/sh -c bash ${BUILD_CMD}' returned a non-zero code: 1 |
Beta Was this translation helpful? Give feedback.
I think there is an issue in your clone command that specifies ${basedir}. Its trying to overwrite it. Try the following