erenyasarkurt / OpenAI-AWS-Lambda-Layer

OpenAI AWS Lambda Layer. Includes a pre-built package zip as well as a way to build your own.
Apache License 2.0
97 stars 19 forks source link

Py 3.9 issue #1

Closed jcnovoa closed 1 year ago

jcnovoa commented 1 year ago

"errorMessage": "Unable to import module 'lambda_function': \n\nIMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!\n\nImporting the numpy C-extensions failed. This error can happen for\nmany reasons, often due to issues with your setup or how NumPy was\ninstalled.\n\nWe have compiled some common reasons and troubleshooting tips at:\n\n https://numpy.org/devdocs/user/troubleshooting-importerror.html\n\nPlease note and check the following:\n\n The Python version is: Python3.9 from \"/var/lang/bin/python3.9\"\n The NumPy version is: \"1.23.5\"\n\nand make sure that they are the versions you expect.\nPlease carefully study the documentation linked above for further help.\n\nOriginal error was: No module named 'numpy.core._multiarray_umath'\n", "errorType": "Runtime.ImportModuleError",

edwardxwu commented 1 year ago

I ran into the same issue with my home-built layer as well. But I could work around it by adding AWS's own pandas layer on top of the openai layer.

erenyasarkurt commented 1 year ago

It has been fixed and merged to the main branch.

jcnovoa commented 1 year ago

Thank you, I tested and it worked, much appreciated.

erenyasarkurt commented 1 year ago

You're welcome @jcnovoa. Thanks for reporting the issue.

yingdi11 commented 1 year ago

I am still seeing this issue. It works when I use Architecture: x86_64 but failed when I use arm64 Screenshot 2022-12-28 181205

erenyasarkurt commented 1 year ago

Yes, the layer is currently only compatible with the x86_64 architecture. I'm planning to add arm64.