-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
I'm currently trying to use AWS DeepAR to forecast the settlement price for some electricity pricing. When I try to import the image_uris from sagemaker as indicated here I am getting the following import error:
ImportError Traceback (most recent call last)
in
----> 1 from sagemaker import image_uris
2 # image_uris.retrieve(framework='forecasting-deepar',region='us-east-2')
/opt/conda/lib/python3.7/site-packages/sagemaker/image_uris.py in
25 from sagemaker.jumpstart import artifacts
26 from sagemaker.workflow import is_pipeline_variable
---> 27 from sagemaker.workflow.utilities import override_pipeline_parameter_var
28
29 logger = logging.getLogger(name)
/opt/conda/lib/python3.7/site-packages/sagemaker/workflow/utilities.py in
24
25 from sagemaker.workflow.parameters import Parameter
---> 26 from sagemaker.workflow.pipeline_context import _StepArguments
27 from sagemaker.workflow.entities import (
28 Entity,
/opt/conda/lib/python3.7/site-packages/sagemaker/workflow/pipeline_context.py in
19 from typing import Dict, Optional
20
---> 21 from sagemaker.session import Session, SessionSettings
22 from sagemaker.local import LocalSession
23
ImportError: cannot import name 'SessionSettings' from 'sagemaker.session' (/opt/conda/lib/python3.7/site-packages/sagemaker/session.py)
To recreate this issue, simply run the following command:
from sagemaker import image_uris
For reference I am using sagemaker 2.108.0