Comments (8)
FIX:
I created a new layer that contains the missing dependencies, would you mind testing it out.
The layer arn is:
arn:aws:lambda::770693421928:layer:Klayers-python38-libgthread-so:1
If you include both the opencv layer and the layer above, the error message no longer appears.
more info here (for further reference):
https://www.keithrozario.com/2021/08/missing-so-files-in-lambda-functions.html
from klayers.
Just tested it on us-east-1
and can confirm same error
from klayers.
I suspect it doesn't have opencv itself, and not just the headless bit. Let me check.
from klayers.
If I change the Python version to 3.7 it does say there is no module cv2
from klayers.
Are there perhaps any updates on this bug? I'm running into the same error for this layer
from klayers.
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. :(
from klayers.
Gotcha, thank's for the heads up 👍
from klayers.
I'm having the same issue.
opencv-python-headless
depends on a native library (libglib
), and AFAIK it's not possible to create a Lambda layer which installs system dependencies for Lambda.
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!
from klayers.
Related Issues (20)
- arn:aws:lambda:eu-west-1:770693421928:layer:Klayers-python38-Pillow:15 doesn't exist HOT 2
- Include pyzbar HOT 1
- [BUG] PyMuPDF AWS-Lambda import error HOT 1
- [FEATURE] Python 3.10 HOT 1
- Unable to import module 'lambda_function': cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl HOT 9
- [BUG] lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by Pillow.libs/libpng16-cb42a3c6.so.16.39.0) HOT 1
- "errorMessage": "Unable to import module 'lambda_function': No module named 'sklearn'" HOT 1
- [BUG] urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips HOT 1
- [BUG] The layer version show the message: "This layer no longer exists. You must remove this layer from the list before you can save any changes" HOT 1
- [FEATURE] Python 3.11 support HOT 2
- Scipy lambda layer for 3.9 and 3.10 HOT 20
- [FEATURE] Additional Package - PyJWT HOT 6
- [FEATURE] web3 HOT 1
- [BUG] Pytesseract - can not open libpng12 so HOT 1
- [FEATURE] python3.12 support HOT 4
- [BUG] Type for title on Python 3.12 arm64 layers HOT 1
- need openai layers HOT 2
- [FEATURE] Update Pillow to 10.2.0 HOT 2
- [BUG] Python 3.11 > aws-psycopg2 >> "Unable to import module 'lambda_function': No module named 'psycopg2._psycopg'" HOT 5
- Create Website for Klayers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klayers.