Sagemaker lifecycle config: could not find conda environment conda_python3

Viewed 9

the below script should run a notebook called prepTimePreProcessing whenever a AWS notebook instance starts runing. however I am getting "could not find conda environment conda_python3" error from the lifecycle config file.

set -e
ENVIRONMENT=python3
NOTEBOOK_FILE="/home/ec2-user/SageMaker/prepTimePreProcessing.ipynb"
echo "Activating conda env"
source /home/ec2-user/anaconda3/bin/activate "$ENVIRONMENT"
echo "Starting notebook"
nohup jupyter nbconvert  --to notebook --inplace --ExecutePreprocessor.timeout=600 --ExecutePreprocessor.kernel_name=python3 --execute "$NOTEBOOK_FILE" &

Any help whould be appreciated.

0 Answers
Related