lambgeo / docker-lambda

AWS Lambda friendly GDAL Docker images and AWS Lambda layer
MIT License
128 stars 19 forks source link

imports failing with Python #81

Open jccartwright opened 5 months ago

jccartwright commented 5 months ago

I'm using an import in my Python handler like:

from osgeo import gdal

and getting the error:

Unable to import module 'lambda_function': No module named 'osgeo'

What am I doing wrong?

Thanks for the help and for creating the Lambda layer!

nghilethanh-atherlabs commented 2 months ago

Have you resolved yet?

jccartwright commented 2 months ago

no, I never found a solution

vincentsarago commented 2 months ago

https://github.com/lambgeo/docker-lambda?tab=readme-ov-file#2-advanced-need-other-dependencies

nghilethanh-atherlabs commented 2 months ago

Hi @vincentsarago I have follow the docs but still get an issue above. Here is my screenshot

Screenshot 2024-09-03 at 11 06 06 AM

This is env: Screenshot 2024-09-03 at 10 35 00 AM

Can you help me to check that :(

I use python3.8 and /lambgeo/lambda-gdal:3.5