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

MIT No Attribution
78 stars 51 forks source link

autoshutdown-extension failed to launch #28

Closed laserpedro closed 1 year ago

laserpedro commented 1 year ago

Hello, I want to use this script so that jupyter kills the idle kernels. I am registering the script to the domain using terraform resource aws_sagemaker_studio_lifecycle_config specifying the studio_lifecycle_config_app_type to JupyterServer. After having launched the jupyter server I am able to select a kernel on studio where I select my extension: the kernel is launched but eventually fails to start since the extension cannot be launched either: ModuleNotFoundError: No module named 'setuptools'. Do you have any insight on this please (and of course let me know if you need extra information).

Thank you, Pierre

durgasury commented 1 year ago

Hi Pierre, can you clarify what you mean by this statement -

After having launched the jupyter server I am able to select a kernel on studio where I select my extension: the kernel is launched but eventually fails to start since the extension cannot be launched either: ModuleNotFoundError: No module named 'setuptools'.

Is there a different extension/script you add for the KernelGateway apps? The JupyterServer extension will be started up by default if you've set it as such. reference To clarify, the extension is not meant to be run on a KernelGateway app.

durgasury commented 1 year ago

Closing due to inactivity. Also, please make sure to use the latest LCC from the repo (that checks for JupyterLab version before installing the extension).