You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is telling me ImportError: 'docker-compose' is not installed.
To reproduce
Use the same EC2 AMI, install docker-compose, and attempt to run PyTorchProcessor in local mode.
Expected behavior
docker-compose is installed so it should not tell me that there is an error.
Screenshots or logs
If applicable, add screenshots or logs to help explain your problem.
Job Name: local_processor_constructor-2022-07-11-18-52-12-390
Inputs: [{'InputName': 'code', 'AppManaged': False, 'S3Input': {'S3Uri': 's3://sagemaker-us-east-1-507925425112/local_processor_constructor-2022-07-11-18-52-12-390/source/sourcedir.tar.gz', 'LocalPath': '/opt/ml/processing/input/code/', 'S3DataType': 'S3Prefix', 'S3InputMode': 'File', 'S3DataDistributionType': 'FullyReplicated', 'S3CompressionType': 'None'}}, {'InputName': 'entrypoint', 'AppManaged': False, 'S3Input': {'S3Uri': 's3://sagemaker-us-east-1-507925425122/local_processor_constructor-2022-07-11-18-52-12-390/source/runproc.sh', 'LocalPath': '/opt/ml/processing/input/entrypoint', 'S3DataType': 'S3Prefix', 'S3InputMode': 'File', 'S3DataDistributionType': 'FullyReplicated', 'S3CompressionType': 'None'}}]
Outputs: []
Traceback (most recent call last):
File "/home/ubuntu/torch/runner.py", line 14, in <module>
torch_procesor.run(
File "/home/ubuntu/.local/lib/python3.9/site-packages/sagemaker/processing.py", line 1608, in run
return super().run(
File "/home/ubuntu/.local/lib/python3.9/site-packages/sagemaker/workflow/pipeline_context.py", line 209, in wrapper
return run_func(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.9/site-packages/sagemaker/processing.py", line 554, in run
self.latest_job = ProcessingJob.start_new(
File "/home/ubuntu/.local/lib/python3.9/site-packages/sagemaker/processing.py", line 778, in start_new
processor.sagemaker_session.process(**process_args)
File "/home/ubuntu/.local/lib/python3.9/site-packages/sagemaker/session.py", line 943, in process
self._intercept_create_request(process_request, submit, self.process.__name__)
File "/home/ubuntu/.local/lib/python3.9/site-packages/sagemaker/session.py", line 4230, in _intercept_create_request
return create(request)
File "/home/ubuntu/.local/lib/python3.9/site-packages/sagemaker/session.py", line 941, in submit
self.sagemaker_client.create_processing_job(**request)
File "/home/ubuntu/.local/lib/python3.9/site-packages/sagemaker/local/local_session.py", line 115, in create_processing_job
container = _SageMakerContainer(
File "/home/ubuntu/.local/lib/python3.9/site-packages/sagemaker/local/image.py", line 91, in __init__
raise ImportError(
ImportError: 'docker-compose' is not installed. Local Mode features will not work without docker-compose. For more information on how to install 'docker-compose', please, see https://docs.docker.com/compose/install/
@satyajitghana The command went from "docker-compose" -> "docker compose" when docker compose went from 1.x.x to 2.x.x. You can pip install 1.x.x https://pypi.org/project/docker-compose/. I'm curious if that works for you.
Describe the bug

This is the AMI that I am using -
I installed docker-compose by setting up the repository as described here - https://docs.docker.com/engine/install/ubuntu/
It is telling me
ImportError: 'docker-compose' is not installed.
To reproduce
Use the same EC2 AMI, install docker-compose, and attempt to run PyTorchProcessor in local mode.
Expected behavior
docker-compose is installed so it should not tell me that there is an error.
Screenshots or logs
If applicable, add screenshots or logs to help explain your problem.
System information
This is the code -
This is my environment
The text was updated successfully, but these errors were encountered: