Qsocketnotifier -Fehler im OpenCV -Programm in Python auf Ubuntu 24.04Python

Python-Programme
Anonymous
 Qsocketnotifier -Fehler im OpenCV -Programm in Python auf Ubuntu 24.04

Post by Anonymous »

Dies ist mein Python -Code in vs Code. Ich habe kürzlich Ubuntu 24.04 auf meinem Laptop doppelt. < /P>
import cv2 as cv

img = cv.imread("starry_night.jpg")

cv.imshow("Display window", img)

cv.waitKey(0)
< /code>
Der Fehler, den ich wörtlich erhalteQSocketNotifier: Can only be used with threads started with QThread
/bin/python3: symbol lookup error: /snap/core20/current/lib/x86_64-linux-gnu/libpthread.so.0: undefined symbol: __libc_pthread_init, version GLIBC_PRIVATE
< /code>
Ich hatte erwartet, dass es ein Fenster mit meinem Bild anzeigt, aber es zeigt diesen Fehler an. Ich habe versucht, darüber zu lesen, aber alles, was ich sehe, geht davon aus, dass Fedora ein Problem hat oder etwas damit zu tun hat, dass ich von Gnome mit Wayland zu Gnome mit Xorg wechselt. Ich weiß nicht, wie das geht, und ich weiß auch nicht, was das sind.>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post