sagemaker-python-sdk
sagemaker-python-sdk copied to clipboard
TypeError: can only concatenate str (not "list") to str
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

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.
Hi! Have you tried using command=["python3"] ?

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