BasioMeusPuga / Lector

Qt based ebook reader
GNU General Public License v3.0
1.52k stars 209 forks source link

Error in sizeHint, bad arguments #154

Open J053Fabi0 opened 1 year ago

J053Fabi0 commented 1 year ago

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 commented 1 year ago

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

DragonMeido commented 1 year ago

how do you resolve it though?

ARiosProjekt commented 1 year ago

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

J053Fabi0 commented 1 year ago

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

ARiosProjekt commented 1 year ago

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.