Giter Site home page Giter Site logo

Comments (8)

keithrozario avatar keithrozario commented on May 22, 2024 3

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.

Screen Shot 2021-08-08 at 1 41 36 PM

more info here (for further reference):
https://www.keithrozario.com/2021/08/missing-so-files-in-lambda-functions.html

from klayers.

adriaanbd avatar adriaanbd commented on May 22, 2024

Just tested it on us-east-1 and can confirm same error

image

image

from klayers.

keithrozario avatar keithrozario commented on May 22, 2024

I suspect it doesn't have opencv itself, and not just the headless bit. Let me check.

from klayers.

adriaanbd avatar adriaanbd commented on May 22, 2024

If I change the Python version to 3.7 it does say there is no module cv2
image

from klayers.

vliegenthart avatar vliegenthart commented on May 22, 2024

Are there perhaps any updates on this bug? I'm running into the same error for this layer

from klayers.

keithrozario avatar keithrozario commented on May 22, 2024

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.

vliegenthart avatar vliegenthart commented on May 22, 2024

Gotcha, thank's for the heads up 👍

from klayers.

tbarusseau avatar tbarusseau commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.