aws-samples / sagemaker-studio-lifecycle-config-examples

MIT No Attribution
78 stars 51 forks source link

KernelGateway script failing #37

Closed khalidbourhaba closed 1 year ago

khalidbourhaba commented 1 year ago

Hello,

I created (via AWS console) a KGW lifecycle with the following script and attached to domain :

# This script installs a single pip package on a SageMaker Studio Kernel Application
#!/bin/bash

set -eux

pip install -e /root/.apitextract/lib-app0337-api-textract/utils

It fails with the following error :

/opt/ml/lifecycleconfig/lifecycle_script.sh: 3: /opt/ml/lifecycleconfig/lifecycle_script.sh: : not found

Any ideas ? I did restart studio after attaching the lifecycle config to domain.

khalidbourhaba commented 1 year ago

Closing - There was an error in my script. The folder was not found.