Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Crashing in Ubuntu 22.04 LTS #1010

Open
TidelyPom opened this issue Sep 6, 2023 · 1 comment
Open

Crashing in Ubuntu 22.04 LTS #1010

TidelyPom opened this issue Sep 6, 2023 · 1 comment

Comments

@TidelyPom
Copy link

Hi

I have tried to use labelImg in Ubuntu 22.04 LTS. I installed it with pip3 as specified on the page, i.e. . I specify and load an image with , the image loads but when I click on 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 ?

@sdelahaies
Copy link

sdelahaies commented Sep 22, 2023

Hi, I just happened to have a similar issue and this solution fixed the problem, hope this helps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants