docker-lambda icon indicating copy to clipboard operation
docker-lambda copied to clipboard

imports failing with Python

Open jccartwright opened this issue 1 year ago • 4 comments

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!

jccartwright avatar Jun 21 '24 21:06 jccartwright

Have you resolved yet?

nghilethanh-atherlabs avatar Sep 02 '24 13:09 nghilethanh-atherlabs

no, I never found a solution

jccartwright avatar Sep 02 '24 20:09 jccartwright

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

vincentsarago avatar Sep 02 '24 20:09 vincentsarago

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

nghilethanh-atherlabs avatar Sep 03 '24 04:09 nghilethanh-atherlabs