79437919

Date: 2025-02-13 22:58:35
Score: 4
Natty: 4.5
Report link

Wish to proceed the discussion after a long time. I've just tried above two repositories, and they all reported to me that the gdal cannot be imported.

  1. For developmentseed/geolambda I set up a simple python 3.10 lambda in us-east-1, and added the
"arn:aws:lambda:us-east-1:552188055668:layer:geolambda:4" 
"arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python:3" 

with environment variables:

GDAL_DATA=/opt/share/gdal
PROJ_LIB=/opt/share/proj (only needed for GeoLambda 2.0.0+)

I just add one line in python "from osgeo import gdal" It shows error like cannot import gdal.

  1. For lambgeo/docker-lambda I user prebuilt lambda layer, like
{
    "region": "us-east-1",
    "layers": [
      {
        "name": "gdal38",
        "arn": "arn:aws:lambda:us-east-1:524387336408:layer:gdal38:4",
        "version": 4
      }
    ]
  },

And with recommended environment variables.

GDAL_DATA: /opt/share/gdal
PROJ_LIB: /opt/share/proj

Also, I got the same error with cannot find gdal. Do you have any idea if I configure some wrong during the approach?

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have any
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Samuel Wei