lambgeo / docker-lambda

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

cannot import name '_gdal_array' from 'osgeo' (/var/task/osgeo/__init__.py) #83

Open nghilethanh09052000 opened 2 months ago

nghilethanh09052000 commented 2 months ago

I am using python3.8 and gdal 3.8

Here is my /var/task dir:

Screenshot 2024-09-03 at 9 46 31 PM

I guess I have wrong setup in Docker file Screenshot 2024-09-03 at 9 47 00 PM

I don't know but how can I make it point to numpy

nghilethanh09052000 commented 1 month ago

Update: I have solved the issue by following this doc to setup python gdal numpy properly: https://pypi.org/project/GDAL/

Screenshot 2024-09-04 at 9 35 13 AM