I'm trying to import papermill inside an AWS python lambda function.
To to this, I first ran pip3 install papermill -t Desktop/python
locally, zipped the python file and uploaded this as a lambda layer.
I am now getting this error:
{
"errorMessage": "Unable to import module 'lambda_function': No module named 'rpds.rpds'",
"errorType": "Runtime.ImportModuleError",
"requestId": "7f217dbf-455f-4867-a5d6-8da1f3abd356",
"stackTrace": []
}
I haven't been able to figure it out nor find any similar issues online. Below is an image of the rpds module available in the 'python' directory, if that's useful? :
I hope someone can help! Thanks.