sagemaker-python-sdk icon indicating copy to clipboard operation
sagemaker-python-sdk copied to clipboard

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

Open DanielRZapataS opened this issue 3 years ago • 1 comments

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.

DanielRZapataS avatar Jun 07 '22 03:06 DanielRZapataS

Hi! Have you tried using command=["python3"] ?

image

nhm-7 avatar Jun 13 '22 17:06 nhm-7

Closing as answered

trungleduc avatar Sep 25 '23 08:09 trungleduc

@jesusaurus can you comment on what you've tried and which error you are getting?

martinRenou avatar Oct 12 '23 07:10 martinRenou