aws / aws/sagemaker-python-sdk

AttributeError: module 'sagemaker' has no attribute 'Session'

Closed
#5,336 2 comments 0 reactions 0 assignees View on GitHub
component: pysdk-team type: bug
Dominant language
Python
Stars
2.3k
Forks
1.3k
Avg merge
1d 22h
Merged PRs (30d)
35

Description

你好 我尝试sagemaker jupyter notebook。

%pip install --quiet --upgrade transformers datasets sagemaker s3fs
import sagemaker
sess = sagemaker.Session()
发现就不可以,报错
AttributeError: module 'sagemaker' has no attribute 'Session'

Contributor guide

Open the contributing guide

Research direction

Reproduce the report in a Jupyter notebook using the listed pip install command, then inspect the imported sagemaker package and the Session lookup. Check the issue's two comments for environment or version details. Done means identifying the cause of the missing attribute and confirming the reported notebook code behaves as expected or documenting the required compatibility change.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud, machine-learning
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.