Skip to content
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

Running into issues when trying to add ligGL.so #15

Open
jmurray6 opened this issue Mar 3, 2021 · 0 comments
Open

Running into issues when trying to add ligGL.so #15

jmurray6 opened this issue Mar 3, 2021 · 0 comments

Comments

@jmurray6
Copy link

jmurray6 commented Mar 3, 2021

Hello! I've been trying for several days to get my code to run on AWS Lambda (Python) that uses moderngl and glcontext and keep hitting this error:

"errorMessage": "libGL.so not found in /lib, /usr/lib or LD_LIBRARY_PATH"

I've tried LOTS of different things but figure that yumda is probably the way to go, and that I'm not using it right.

I followed the simple example from the readme but I'm still getting the same error on Lambda. Is there a step I'm missing on the Lambda side? I've also tried adding ENV VARs to change the LD_LIBRARY_PATH with no luck. Any help is greatly appreciated!

Commands I'm running:

mkdir -p gl-layer
docker run --rm -v "$PWD"/gl-layer:/lambda/opt lambci/yumda:2 yum install -y mesa-libGL
cd gl-layer
zip -yr ../gl-layer.zip .
cd ..
aws lambda publish-layer-version --layer-name gl-layer --zip-file fileb://gl-layer.zip --compatible-runtimes Python38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant