Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6184

libEGL warning: MESA-LOADER: failed to open swrast

$
0
0

I am using wsl on windows 11. inside wsl, I have created an anaconda environment, through witch I launch Jupyter Lab. I am trying to use OpenCV to load an avi video file into my code and read its frames with Google's Mediapipe. These first code cells run just fine:

import cv2import mediapipe as mpimport pandas as pdimport numpy as npimport tensorflow as tfmp_hands = mp.solutions.handsmp_pose = mp.solutions.posemp_drawing = mp.solutions.drawing_utilscap = cv2.VideoCapture('/Ready0/MVI_0025_0003.avi')columns = ['frame', 'hand_landmarks', 'pose_landmarksdf = pd.DataFrame(columns=columns)`but this last code cell gives me errors. Here is the code itself:`with mp_hands.Hands(max_num_hands=2) as hands, mp_pose.Pose() as pose:    while True:        ret, img = cap.read()        if not ret:            break

and here is the error:

libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)

I am using the latest version of all the packages mentioned

I searched the web and found related problems witch had been answered bud their solutions didn't seem to work for me. for example, someone suggested to run this code in the command prompt:MESA_LOADER_DRIVER_OVERRIDE=i965 ./kiwix-deskop

first I ran it in the normal windows command prompt and got this:'MESA_LOADER_DRIVER_OVERRIDE' is not recognized as an internal or external command, operable program or batch file. and then I ran it again in the cmd but this time, inside the wsl and inside my anaconda environment and got this:-bash: ./kiwix-deskop: No such file or directory


Viewing all articles
Browse latest Browse all 6184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>