-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libgdal.so: cannot open shared object file: No such file or directory #91
Comments
Hey @AnneSophie12, make sure to set |
@AnneSophie12 Sorry I've not been attending to this project for a while, but @saheelBreezo is correct, those fixes should take care of that error message. Did you ever get it resolved? |
I'm getting the same error message as @AnneSophie12 after switching to v2.1.0-python:
Prior to switching to the new v2.1.0-python layer, I was successfully using v2.0.0 without any errors like the one shown above. I was already setting |
Hi @kwinwithak There actually isn't any deployed 2.1.0 Lambda layers yet....I built the image which is available on Docker Hub, but not yet pushed public Lambda layers. When I do that I'll update the ARNs in the README and create an official release. |
@matthewhanson I'm getting the same error as well but I am using the ARN for a lambda layer and adding it to my lambda function, plus my lambda function I'm using to read GDAL is in nodejs not Python. I tried to set Am I doing something wrong or I'm not setting the environmental variables correctly? The runtime I'm using is Node.js 14x |
It is not inconceivable that your issue is related to a problem I have a proposed fix for - #101 The issue is that the rsync step of the build process is not working, because rsync is missing from the image. This is likely failing to deliver libgdal.so into the expected place. |
Having said, that I am also experiencing this very same symptom, even after fixing the Dockerfile, but only when I try to do an automated build on Circle CI. This happens:
The really annoying thing is if I run the build locally or repeat the build with Circle CI with SSH enabled, it always works without this failure, but if I then revert to the automated Circle CI build, it always fails, and I cannot work out what the key difference is. A classic Heisenbug. update: the first docker-run command was using a -i option which is not compatible with automated execution. I will check that this option is unnecessary and amend my PR with some additional commits, the first a call to |
arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python:3 does this error for me too, despite setting the env variables |
I was also getting this error
when adding just the v2.1.0-python layer, but digging through the issues and PRs, especially #111, led me to add the v2.1.0 layer as well (despite the note:
That got me past the error in this issue. |
Hello,
First of all, thank you for this awesome code that simplify this process so much !
Although, i'm pretty new with AWS Lambda and I've had trouble using it. I followed the python readme in order to build the docker (as i want to use it on eu-west-3).
For the requirements, i just need GDAL (for the use of gdalinfo and gdal_translate) and Pyproj so I removed rasterio and shapely from the example requirements.
I built the docker, run the package.sh and the python-package.sh and publish the 'deploy-layer.zip' to aws lambda.
I copied-paste the lambda handler from this repo into the lambda_funtion on the AWS Lambda Gui and linked my new layer.
But when i try to run the lambda function this message appears :
"errorMessage": "Unable to import module 'lambda_function': libgdal.so: cannot open shared object file: No such file or directory",
"errorType": "Runtime.ImportModuleError"
I tried different configuration of the requirements, dockerfiles, package.sh and python-package.sh in order to correct this but without really understanding what causes this error ..
Would you have an idea on how to help me ?
Thank you very much !!
The text was updated successfully, but these errors were encountered: