-
Notifications
You must be signed in to change notification settings - Fork 48
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
Python error with cgo lambda #64
Comments
provision command output with -n: INFO[0000] ======================================== |
Taking a look |
Hi @angelabad - I'm seeing some odd behavior with the sample app as well. The Lambda function fails to provision, but there is no error cause. Need to investigate further... |
Ok, thanks for your work! |
I think this was a different manifestation of #63 - working on a release to resolve. |
@angelabad - Can you please regress with https://github.com/mweagle/Sparta/blob/master/CHANGES.md#v0131 and LMK if this resolves your issue? TIA. |
🤔 - I'm not able to reproduce this. A few questions:
Thanks! |
Hi @angelabad - checking in to see if you've been able to make any progress on this issue. TIA. |
Hi @mweagle, sorry for my delay.
Thanks in advance! |
Hi @angelabad - I've pushed up https://github.com/mweagle/Sparta/tree/mweagle/0.13.3 that has a bit more error handling to help diagnose. Could you try with that branch and see if there's any more diagnostic information? Thanks! |
Hi @mweagle, same error here :-( I attach logs Its possible the error be in my code? Here is my cgo branch: Logs: Cheers, |
Thanks Angel,
I’ll take a look & update with results. Appreciate you sharing the source.
From: Angel Abad <notifications@github.com>
Reply-To: mweagle/Sparta <reply@reply.github.com>
Date: Saturday, August 12, 2017 at 12:22 AM
To: mweagle/Sparta <Sparta@noreply.github.com>
Cc: Matt Weagle <mweagle@gmail.com>, Mention <mention@noreply.github.com>
Subject: Re: [mweagle/Sparta] Python error with cgo lambda (#64)
Hi @mweagle<https://github.com/mweagle>, same error here :-(
I attach logs
Its possible the error be in my code? Here is my cgo branch:
* https://github.com/angelabad/unsplash-telegram-bot/tree/feature/cgo
Logs:
* provision.txt<https://github.com/mweagle/Sparta/files/1219564/provision.txt>
* error.txt<https://github.com/mweagle/Sparta/files/1219565/error.txt>
Cheers,
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#64 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAYr6neAv1FG6o9YN1TepRGz0khcB7Toks5sXVKvgaJpZM4Odv5Y>.
|
Hi @angelabad - it seems like this code is expecting additional configuration. What command do you use to build? TIA. |
Sorry, yo need a config.json in directory project, I attach a fake config.json.txt (rename it to config.json), you can use it to see the error in aws. I build the project wth $ go build and provision it with $ ./unsplash-telegram-bot provision -s bucket Thanks for your attention |
Hi @angelabad - I think I've found the issue. When building with
and look at the ./sparta/main.go source. In the current configuration, There are a few ways to manage the build/deploy/execution contexts - can you help me understand what you're trying to accomplish with the command line options? |
Hi @mweagle , I understand... I attach the generated .sparta/main.go. I help it helps us. Thanks in advance! |
Hi @mweagle I tested this issue with 0.20.0 and I got the same error :-( Cheers |
Hi @angelabad - there isn't really a way for Sparta to better handle this situation. In the cgo world, your |
Hi @mweagle, sorry for my delay. But I dont understand why my main function fails to convert in init() function. So I cant fox the error :-( Cheers |
Your func init() {
err := parseConfig()
if err != nil {
log.Panic("Error parsing config ", err.Error())
}
parseErrors := sparta.ParseOptions(nil)
if parseErrors != nil {
os.Exit(2)
}
var StackName string
.... Since there isn't a configuration file available to load when running in AWS, the There are a few ways to make configuration information available to your function, including ArchiveHooks, KMS-wrapped values with SpartaVault or just via environment variables. Will one of those work for your use case? |
Hi @mweagle, I understand it, sorry for the inconvenience. I will try one of your alternatives. Cheers, |
Hello @mweagle, I am trying to switch to sparta cgo, but allways I get the same error in cloudwatch (I attach it)
Error: unknown command "/var/runtime/awslambda/bootstrap.py" for "python3.6"
I attach the provision -n log too, and you can see my go code in this branch:
cloudwatch_error.txt
Thanks in advance
The text was updated successfully, but these errors were encountered: