labelImg
labelImg copied to clipboard
Crashing in Ubuntu 22.04 LTS
Hi
I have tried to use labelImg in Ubuntu 22.04 LTS. I installed it with pip3 as specified on the page, i.e. <pip3 install labelImg>. I specify <Yolo> and load an image with <Open>, the image loads but when I click on <CreateRectBox> the software crashes with the following message in the terminal :
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. Traceback (most recent call last): File "/home/tha/.local/lib/python3.10/site-packages/libs/canvas.py", line 530, in paintEvent p.drawLine(self.prev_point.x(), 0, self.prev_point.x(), self.pixmap.height()) TypeError: arguments did not match any overloaded call: drawLine(self, QLineF): argument 1 has unexpected type 'float' drawLine(self, QLine): argument 1 has unexpected type 'float' drawLine(self, int, int, int, int): argument 1 has unexpected type 'float' drawLine(self, QPoint, QPoint): argument 1 has unexpected type 'float' drawLine(self, Union[QPointF, QPoint], Union[QPointF, QPoint]): argument 1 has unexpected type 'float' QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it? QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it? QPainter::begin: Painter already active Segmentation fault (core dumped)
Note when I installed labelImg with pip3 it seemed okay, the terminal said :
Defaulting to user installation because normal site-packages is not writeable Collecting labelImg Using cached labelImg-1.8.6-py2.py3-none-any.whl Requirement already satisfied: pyqt5 in /usr/lib/python3/dist-packages (from labelImg) (5.15.6) Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (from labelImg) (4.8.0) Requirement already satisfied: PyQt5-sip<13,>=12.8 in /usr/lib/python3/dist-packages (from pyqt5->labelImg) (12.9.1) Installing collected packages: labelImg Successfully installed labelImg-1.8.6
Any idea ?
Hi, I just happened to have a similar issue and this solution fixed the problem, hope this helps.