weaviate-python-client icon indicating copy to clipboard operation
weaviate-python-client copied to clipboard

AWS Lambda unable to upload package

Open mtrejo0 opened this issue 2 years ago • 0 comments

How to reproduce this bug?

I made a lamdba function with the weaviate package download

I tried to upload the file through zip and create a layer with the package included but it did not work either way

I followed this doc to use weaviate in python: https://repost.aws/knowledge-center/lambda-import-module-error-python

And this document to zip packages with the function: https://docs.aws.amazon.com/lambda/latest/dg/python-package.html

What is the expected behavior?

It should be able to have a lmabda that runs this package

What is the actual behavior?

When trying to import this package the lamdba function simply cannot and gives this error:

{
  "errorMessage": "Unable to import module 'lambda_function': /opt/python/cryptography/hazmat/bindings/_rust.abi3.so: invalid ELF header",
  "errorType": "Runtime.ImportModuleError",
  "requestId": "f403ee24-e45f-400c-982d-7df00a292652",
  "stackTrace": []
}

Screen Shot 2023-12-14 at 9 50 39 PM

Supporting information

No response

Server Version

3.25.3 python client

Code of Conduct

mtrejo0 avatar Dec 15 '23 05:12 mtrejo0