aws/amazon-sagemaker-feedback

cannot install packages from conda-forge (app crashes)

Closed this issue · 3 comments

Product Version

  • Amazon SageMaker Studio Classic
  • Amazon SageMaker Studio
  • Issue is not related to SageMaker Studio

Issue Description

In Code Editor, adding a package from conda-forge kills the terminal and makes the app crash. Example:
conda create --name test_env
source activate test_env
conda install conda-forge::poetry

The crash also occurs for other packages than poetry.

Expected Behavior

The package should be installed.

Observed Behavior

The terminal is killed and the app becomes unresponsive.

Product Category

Code-Editor

Feedback Category

Configuration and Setup

Other Details

No response

Thanks for reporting the issue.

Given the SageMaker Studio Code Editor is using SageMaker Distribution Image, which is using micromamba for python package management, can you try following commands instead?

micromamba create --name test_env
eval "$(micromamba shell hook --shell bash)"
micromamba activate test_env
micromamba install -c conda-forge poetry

I could not reproduce the issue using the conda commands in issue description section. Instead, the conda installation command did not work and got killed after some time.

Thank you very much, micromamba works perfectly for now.

Thanks for the confirmation.