Expected behaviour
Since the update last night to version 4.3.0.38, our builds are breaking. On 4.3.0.36 all runs fine
Actual behaviour
On python:3.8 docker images (and also python:3.7), we are getting this
Traceback (most recent call last):
File "test.py", line 1, in <module>
import cv2
File "/usr/local/lib/python3.8/site-packages/cv2/__init__.py", line 5, in <module>
from .cv2 import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
Steps to reproduce
Dockerfile
FROM python:3.8
WORKDIR /app
COPY . .
RUN pip install -r requirements.txt
CMD ["python", "test.py"]
requirements.txt
test.py
import cv2
print('success')
Run docker build -t opencv-test:latest .
And then docker run opencv-test:latest
You will get the error written above.
If the version is set to 4.3.0.38 you will get:
success
Issue submission checklist
Expected behaviour
Since the update last night to version 4.3.0.38, our builds are breaking. On 4.3.0.36 all runs fine
Actual behaviour
On python:3.8 docker images (and also python:3.7), we are getting this
Steps to reproduce
Dockerfile
requirements.txt
test.py
Run
docker build -t opencv-test:latest .And then
docker run opencv-test:latestYou will get the error written above.
If the version is set to 4.3.0.38 you will get:
successIssue submission checklist
opencv-python