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

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Qsocketnotifier -Fehler im OpenCV -Programm in Python auf Ubuntu 24.04

by Anonymous » 09 Apr 2025, 01:33

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.>

Top