import cv2

Hi, I'm getting importError: libGL.so.1: cannot open shared object file: No such file or directory. I'm trying to deploy my Django opencv application. My project ID = e4355998-e5df-4dce-87d4-1d9edff5ca30
Solution:
use opencv-python-headless instead
Jump to solution
5 Replies
Percy
Percy2y ago
Project ID: e4355998-e5df-4dce-87d4-1d9edff5ca30
Solution
Brody
Brody2y ago
use opencv-python-headless instead
lekiakiisi
lekiakiisiOP2y ago
I tried the headless flag. From what I just found out, opencv-contrib-python is installed by mediapipe, which is one of the dependencies in requirements.txt. How do I override the installation of opencv-contrib-python with opencv-contrib-python-headless. Also, during my build, I am getting the ERROR: failed to solve: process "/bin/sh -C apt-get update --yes --quiet && apt-get install --yes --quiet -no-install-recommends <list of packages> I need help. I built a Dockerfile to deal with the automatic import of opencv-contrib-python by mediapipe. I'm currently having a ModuleNotFoundError: No module named 'palmrecognition'. palmrecognition is the name of my Django project. I can't run manage.py from the Dockerfile too. Please help me, I have been stuck here all day. Project ID: e4355998-e5df-4dce-87d4-1d9edff5ca30 Solved
Brody
Brody2y ago
awesome, I'm glad you solved it while I was sleeping lol
Deep
Deep12mo ago
Hi Lekia, looks like I am in the exact same situation wondering how can I override the installation of opencv-contrib-python with opencv-contrib-python-headless. need help
Want results from more Discord servers?
Add your server