I need to use AWS Data Wrangler, NumPy and SciPy in one AWS Lambda.
To make it possible I use two Layers:
- Layer provided by AWS:
AWSLambda-Python38-SciPy1x
- AWS Lambda SciPy Layer for Python38 (scipy-1.5.1, numpy-1.19.0) - Custom Layer created from awswrangler-layer-2.9.0-py3.8.zip
My AWS Lambda function looks like this:
def lambda_handler(event, context):
import awswrangler as wr
And the error I receive:
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
[ERROR] ImportError: numpy.core.multiarray failed to import
I there a way I could make it work?