developmentseed / geolambda

Create and deploy Geospatial AWS Lambda functions
MIT License
303 stars 85 forks source link

GeoLambda publish to New Region : Unable to import module 'lambda_function': No module named 'gdal' #100

Closed haneefputtur closed 3 years ago

haneefputtur commented 3 years ago

I am trying to create a layer for a new region however I have failed all the time. I am getting error message

Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'gdal'

I tried this build-and-test.sh script and tried to upload the lambda-deploy.zip files created from root folder as well from python folder still i get same issue.

Is there any step by instruction ?

My code works well if i use the ARN mentioned for us-east-1 . However I want in a new region. Kind support is highly appreciated.


Update i have updated my geolambda layer to us-east-1 and used the v2.1.0-python [arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python:3] then my code works fine.

Means my v2.1.0-python deploy package is having issues.

Any support will be a great help.