-
Notifications
You must be signed in to change notification settings - Fork 323
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
[BUG] OpenCV Headless doesn't work with lambda #115
Comments
I suspect it doesn't have opencv itself, and not just the headless bit. Let me check. |
Are there perhaps any updates on this bug? I'm running into the same error for this layer |
Sorry guys, haven't had time to look into this. Overall, we just pip install the package, and zip that up into a layer. I suspect in order to use this, we'll need that shared-object file which isn't installed with pip. :( |
Gotcha, thank's for the heads up 👍 |
I'm having the same issue.
Is there a workaround? I know that this exists, but generating a shared library on an Amazon Linux EC2 instance to ship it later in a ZIP archive for a Lambda function seems... Not very robust? I mean if that's the only way to get it to work, I'll try! |
FIX: I created a new layer that contains the missing dependencies, would you mind testing it out. The layer arn is: If you include both the opencv layer and the layer above, the error message no longer appears. more info here (for further reference): |
Describe the bug
OpenCV Headless isn't working with Lambda Layers. Getting an error:
Lambda function:
Layer Version ARN:
arn:aws:lambda:eu-west-2:770693421928:layer:Klayers-python38-opencv-python-headless:11
Framework:
Console
The text was updated successfully, but these errors were encountered: