Skip to content

TypeError: can only concatenate str (not "list") to str #3160

@DanielRZapataS

Description

@DanielRZapataS

This error appears when you run the ScriptProcessor.run(). The script its at thew same level of my notebook in pagemaker Studio. It doesn't change if I add input, and output. I'm using a custom image on ECR. I also tried to save my script on s3 and pass the s3 path.

from sagemaker.processing import Processor
processor = ScriptProcessor(role=role,
                      image_uri=processing_image_uri,
                      instance_count=processing_instance_count,
                      instance_type=processing_instance_type,
                      base_job_name=base_job_name,
                      sagemaker_session = sagemaker_session,
                      command="python3") 
code = 'main.py'
processor.run(
        code = code
) 

Screenshots or logs

Screen Shot 2022-06-06 at 10 18 04 PM

System information
A description of your system. Please provide:

  • SageMaker Python SDK version: 2.88.1 and 2.93.1
  • Python version:3.x

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: processingRelates to the SageMaker Processing Platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions