-
Notifications
You must be signed in to change notification settings - Fork 193
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
Should the sam build during deploy include "--use-container"? #749
Comments
Where is your requirements.txt and also its contents? |
It's location is within my code folder (in this case reddiseaders). If I remove it or blank it, praw isn't installed, so it's definitely being read. Contents:
|
Can you also include the full sam build logs from |
(starting from where I think is relevant, I'll include the full lot if you want)
and then the stacktrace bit,
Obviously there was a bit more going on here than I knew about. |
And here's the debug log of a successful run (with
Looks like I've a quite specific situation because of the weird-ass pycrypto anaconda installed? |
Thanks, the error log shows that the error handling is not working correctly. There is supposed to be a nice messaging saying that it could not package a certain package. Going to split this into 2 issues:
|
Lambda builders issue: aws/aws-lambda-builders#71 |
👍 On the I understand that's fairly awkward here because there's multiple commands happening one after the other, but just thought I'd suggest. |
@abrooksv How do we get this issue to work? My build is failing due to a whl not being found for a package
|
Or at least an option to include it?
aws-toolkit-jetbrains/jetbrains-core/src/software/aws/toolkits/jetbrains/services/lambda/deploy/SamDeployDialog.kt
Line 94 in 0a1728d
I'm running my lambda function in a virtual environment, and it has 2 dependencies,
praw
andpycrypto
. My machine python install is under anaconda. That install haspycrypto
installed, but not praw.When I run the default deploy (right-click,
Deploy Serverless Application
), and it runs thesam build --template .../template.yaml --build-dir .../.aws-sam/build
command, I get an error telling me my module can't be imported becausepycrypto
can't be imported.When I check the build folder, I see that
praw
has been installed by the pip build process, butpycrypto
hasn't (because it's already installed on that system python install).I've actually gone and manually added
--use-container
in to thesam
script,And now everything works correctly.
So yeah, should
--use-container
be there by default? Or at least give us an option to include it? Because it doesn't seem like the built will build correctly without it.The text was updated successfully, but these errors were encountered: