Skip to content

AttributeError: 'LocalSagemakerClient' object has no attribute 'create_pipeline' #2990

@neilmcguigan

Description

@neilmcguigan

Describe the bug
SageMaker Python SDK model building pipelines does not work in Local Mode

To reproduce


sagemaker_session = LocalSession()
sagemaker_session.config = {'local': {'local_code': True}}

processor = SKLearnProcessor(
    base_job_name = "processingjob",
    role = cfg.role_arn,
    framework_version = cfg.sklearn_version,
    instance_count = cfg.instance_count,
    instance_type = "local",
    sagemaker_session=sagemaker_session
)

processing_step = ProcessingStep(
    name="processing",
    processor=processor,
    code = "code/preprocessor.py"
)

pipeline = Pipeline(
    name = "mypipeline",
    steps = [processing_step],
    sagemaker_session = sagemaker_session
)

pipeline.upsert(role_arn = cfg.role_arn)
pipeline.start()

Expected behavior
SageMaker model building pipelines should work in Local Mode for faster development

Screenshots or logs
AttributeError: 'LocalSagemakerClient' object has no attribute 'create_pipeline'

System information
A description of your system. Please provide:

  • SageMaker Python SDK version: 2.78.0
  • Python version: 3.8
  • CPU or GPU: CPU
  • Custom Docker image (Y/N): N

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions