Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error exec /opt/.sagemakerinternal/conda/kgw_variant: exec format error #30

Open
manas86 opened this issue Jan 18, 2023 · 2 comments

Comments

@manas86
Copy link

manas86 commented Jan 18, 2023

Hi All,

I'm using https://github.com/aws-samples/sagemaker-studio-custom-image-samples/tree/main/examples/python-poetry-image
to bring the custom image to Sagemaker Studio.

However, when I start the notebook, with this custom image using apptype KernelGateway, it's takes a lot time to load and in my cloudwatch loggroup I see exec /opt/.sagemakerinternal/conda/kgw_variant: exec format error .

Does anyone knows, why this error message? or how can I fix this?

@tomasborrella
Copy link

I had the same issue and the problem was that I was doing the build on a Mac with M1 Apple Silicon, and the architecture of the image that I was building was not compatible with AWS.

The solution is simply to specify the architecture in the Dockerfile or in the build command:
--platform=linux/amd64

@tomasborrella
Copy link

@manas86, if it has been solved (as discussed here) maybe you should close this issue... What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants