-
Notifications
You must be signed in to change notification settings - Fork 472
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
SAM Debug: failed to build layers with Python #2468
Comments
Looks like an incompatibility with how the Toolkit handles debugging Python lambdas. We're basically adding One (temporary) workaround could be adding |
I tried the workaround - it doesn't work for me (still the same error). My requirements.txt file:
|
Is that the I'll dig a bit more into this problem, there may be something I'm missing. |
Yes, the
|
Looks like the build is taking a long time and causing the toolkit to timeout. A fast way to find the setting is by running the command Updates regarding timeouts in SAM debug flows are partially tracked apart of this issue: #2455 |
Your bits of advice helped me. I managed to run locally my app using the AWS toolkit. Thank you for the workaround and help. Would be nice if it will work in the future without adding |
any update on this issue? will it be fixed? |
Describe the bug
I have a SAM application that consists of lamda functions and one shared lambda layer. The layer uses a makefile identifier for building a resource within the template. I can't run and debug the application from VS Code - it fails on (from aws toolkit logs):
The part with --manifest /mnt/c/project/project/.aws-sam/debug-requirements.txt looks very strange to me. It is added by default from aws toolkit in VS Code and it causes the issue.
Running build directly from the terminal:
Gives:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
SAM app should build and run properly after a click on run and debug in VS Code. Build should succeed similar as from directly the terminal.
Desktop (please complete the following information):
Additional context
Configuration:
The text was updated successfully, but these errors were encountered: