Lector icon indicating copy to clipboard operation
Lector copied to clipboard

Error in sizeHint, bad arguments

Open J053Fabi0 opened this issue 3 years ago • 5 comments

https://github.com/BasioMeusPuga/Lector/blob/1b1d87739a8c14e0e22009435350b155fc3e3b77/lector/toolbars.py#L514

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/lector/toolbars.py", line 514, in sizeHint
    return QtCore.QSize(self.adjusted_size, 22)
TypeError: arguments did not match any overloaded call:
  QSize(): too many arguments
  QSize(int, int): argument 1 has unexpected type 'float'
  QSize(QSize): argument 1 has unexpected type 'float'
fish: Job 1, 'lector' terminated by signal SIGABRT (Abort)

I'm using lector-0.5.1-1 with Arch Linux.

J053Fabi0 avatar Oct 31 '22 18:10 J053Fabi0

I see now the problem isn't with the actual code, but with the version that is published in the AUR.

J053Fabi0 avatar Nov 02 '22 14:11 J053Fabi0

how do you resolve it though?

DragonMeido avatar Dec 25 '22 10:12 DragonMeido

I am facing the same issue on Fedora... How did you solved it?

ARiosProjekt avatar Feb 28 '23 22:02 ARiosProjekt

I installed it manually from source: https://github.com/BasioMeusPuga/Lector#installation

J053Fabi0 avatar Feb 28 '23 22:02 J053Fabi0

I installed it manually from source: https://github.com/BasioMeusPuga/Lector#installation

Thank you, Looks like Aur and copr builds had the same issue, now it is working. I appreciate the prompt response, Fabio.

ARiosProjekt avatar Feb 28 '23 22:02 ARiosProjekt