aws / aws/amazon-sagemaker-feedback

Unable to Properly Install Poetry

Open
#168 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
10
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### Product Version

- [ ] Amazon SageMaker Studio Classic
- [x] Amazon SageMaker Studio
- [ ] Issue is not related to SageMaker Studio

### Issue Description

Hey, I am trying to setup my JupyterLab space following the tutorial here: https://experiment.labs.thomsonreuters.com/2_setup/repo.html#initialize-mltools-cli - see chapter 3.2.
The described process had previously worked in a different workspace and JupyterLab space. However, now when I am trying to run the `setup.sh` file, I am receiving an error that poetry couldn't be installed. See more below.

### Expected Behavior

_No response_

### Observed Behavior

Image: SageMaker Distribution 1.11.0

After running `bash -x ./setup.sh` the following output is displayed:

+ set -e
+ [[ ! -f /home/sagemaker-user/.local/bin/poetry ]]
+ curl -sSL https://install.python-poetry.org
+ python - --version 1.8.5
curl: (28) Failed to connect to install.python-poetry.org port 443 after 215122 ms: Connection timed out
+ echo 'export PATH=/home/sagemaker-user/.local/bin:$PATH'
+ source /home/sagemaker-user/.bashrc
++ cd /home/sagemaker-user
++ export PATH=/home/sagemaker-user/.local/bin:/opt/conda/bin:/opt/conda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ PATH=/home/sagemaker-user/.local/bin:/opt/conda/bin:/opt/conda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ echo 'If Poetry is not recognized properly, '\''source ~/.bashrc'\'' may not have executed succesfully. Please run '\''source ~/.bashrc'\'' yourself or restart your terminal'
If Poetry is not recognized properly, 'source ~/.bashrc' may not have executed succesfully. Please run 'source ~/.bashrc' yourself or restart your terminal

### Product Category

JupyterLab

### Feedback Category

Error Handling and Debugging

### Other Details

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the setup.sh file referenced in the report and reproduce the Poetry installation attempt in SageMaker Studio using the documented tutorial steps. Check how the script handles the curl timeout to install.python-poetry.org and verify that the resulting behavior gives users a clear failure; done means the installation path is reliable or the network-related error is explicitly reported.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, jupyter, python, shell
Domain
cloud, devops, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.