This repository was archived by the owner on Jan 15, 2023. It is now read-only.

Description
I do realise that this issue is an issue on AWS Lambda side. I'm just not sure where to start asking for help. If you have a better idea, I'll gladly open this issue elsewhere.
I'm trying to deploy a Lambda function with python3.8 as the run time and install opencv-python as a dependency. The problem is that when I deploy it to lambda and try to import cv2, I get this:
[ERROR] Runtime.ImportModuleError: Unable to import module 'handler': libGL.so.1: cannot open shared object file: No such file or directory
The error occurs both when actually using AWS Lambda and when trying to run the code in lambci/docker-lambda.
It used to work just fine on 3.7, so I spun up a lambci/lambda:build-python3.8 and lambci/lambda:build-python3.7 container to see whether they have the library. 3.7 does (/usr/lib64/libGL.so.1), while 3.8 doesn't. I'm not sure why there is a discrepancy and what was changed when updating to 3.8.