Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on start - arguments did not match any overloaded call: QColor(Qt.GlobalColor): argument 1 has unexpected type 'float' #1062

Closed
ChargingBulle opened this issue Aug 17, 2022 · 9 comments

Comments

@ChargingBulle
Copy link

ChargingBulle commented Aug 17, 2022

Can't open manuskript

2022-08-17 15:29:56,182 - manuskript.logging - INFO - Logging to file: /home/phawthorne/.local/share/manuskript/manuskript/logs/2022-08-17_15-29-56_manuskript#169983.log
2022-08-17 15:29:56,185 - manuskript - INFO - Operating System: Linux-5.18.0-1-amd64-x86_64-with-glibc2.33
2022-08-17 15:29:56,185 - manuskript - INFO - Hardware: x86_64 / 
2022-08-17 15:29:56,185 - manuskript - INFO - Running from unpackaged source code.
2022-08-17 15:29:56,185 - manuskript - DEBUG - * sys.executable = '/usr/bin/python3'
2022-08-17 15:29:56,185 - manuskript - DEBUG - * sys.argv = ['/usr/bin/manuskript', '--verbose']
2022-08-17 15:29:56,185 - manuskript - DEBUG - * sys.path = ['/usr/bin',
 '/usr/share/manuskript/',
 '/usr/lib/python310.zip',
 '/usr/lib/python3.10',
 '/usr/lib/python3.10/lib-dynload',
 '/usr/local/lib/python3.10/dist-packages',
 '/usr/lib/python3/dist-packages',
 '/usr/lib/python3.10/dist-packages']
2022-08-17 15:29:56,185 - manuskript - DEBUG - * sys.prefix = '/usr'
2022-08-17 15:29:56,186 - manuskript - INFO - Manuskript 0.12.0 (Python 3.10.5)
2022-08-17 15:29:56,186 - manuskript - INFO - * PyQt 5.15.7 (compiled against Qt 5.15.4)
2022-08-17 15:29:56,186 - manuskript - INFO -   * Qt 5.15.4 (runtime)
2022-08-17 15:29:56,193 - manuskript - INFO - * lxml.etree 4.8.0.0
2022-08-17 15:29:56,193 - manuskript - INFO -   * libxml   2.9.14 (compiled: 2.9.12)
2022-08-17 15:29:56,193 - manuskript - INFO -   * libxslt  1.1.34 (compiled: 1.1.34)
2022-08-17 15:29:56,194 - manuskript - INFO - * pyEnchant 3.2.2 (libenchant: 2.3.3)
2022-08-17 15:29:56,194 - manuskript - INFO - * pySpellChecker N/A
2022-08-17 15:29:56,194 - manuskript - INFO - * Symspellpy N/A
2022-08-17 15:29:56,246 - manuskript - INFO - * Markdown 3.3.7
2022-08-17 15:29:56,321 - manuskript - INFO - Web rendering engine: QtWebKit
2022-08-17 15:29:56,338 - manuskript.main - INFO - Preferred translation: manuskript_de.qm (based on user setting)
2022-08-17 15:29:56,339 - manuskript.main - INFO - Loaded translation: manuskript_de.qm
2022-08-17 15:29:56,348 - manuskript.logging - CRITICAL - An unhandled exception has occurred!
Traceback (most recent call last):
  File "/usr/bin/manuskript", line 30, in <module>
    main.run()
  File "/usr/share/manuskript/manuskript/main.py", line 292, in run
    app, MW = prepare(arguments)
  File "/usr/share/manuskript/manuskript/main.py", line 171, in prepare
    from manuskript.mainWindow import MainWindow
  File "/usr/share/manuskript/manuskript/mainWindow.py", line 23, in <module>
    from manuskript.models.worldModel import worldModel
  File "/usr/share/manuskript/manuskript/models/worldModel.py", line 11, in <module>
    from manuskript.ui import style as S
  File "/usr/share/manuskript/manuskript/ui/style.py", line 36, in <module>
    highlightLight = F.mixColors(highlight, window, .3)
  File "/usr/share/manuskript/manuskript/functions/__init__.py", line 197, in mixColors
    return QColor(r, g, b) if not fromString else QColor(r, g, b).name()
TypeError: arguments did not match any overloaded call:
  QColor(Qt.GlobalColor): argument 1 has unexpected type 'float'
  QColor(int): argument 1 has unexpected type 'float'
  QColor(QRgba64): argument 1 has unexpected type 'float'
  QColor(Any): too many arguments
  QColor(): too many arguments
  QColor(int, int, int, alpha: int = 255): argument 1 has unexpected type 'float'
  QColor(str): argument 1 has unexpected type 'float'
  QColor(Union[QColor, Qt.GlobalColor, QGradient]): argument 1 has unexpected type 'float'

Running manuskript version 0.12.0-1 with python3-pyqt5 version 5.15.7+dfsg-1 on Debian Testing, 5.18.0-1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.2-1 (2022-06-06) x86_64 GNU/Linux

What to do?

@TheJackiMonster
Copy link
Collaborator

Please just try a newer version of Manuskript. I would recommend to use the flatpak on Debian, since it will provide the newest version out of the box without relying on potentially breaking dependencies.

The issue you encountered relies on the newer python version which breaks on type mismatches while older versions used implicit casting and ignored the cause.

@TheJackiMonster
Copy link
Collaborator

This issue is a duplicate of #1043. So I will close it.

@ChargingBulle
Copy link
Author

Thanks for the information!

Ugh... why is the debian package not maintained?
Can you at least replace it with an empty package to signal the removal from the package manager? I think ownCloud did a similar thing but their reasoning was that servers ran outdated and vulnerable software (not applicable here).

To me as a debian user this really sucks because this looks like debian is not supported by manuskript - one of the largest and most influential distributions out there.

I really dislike flatpak because it's like dark sneaky alleyway installation outside of sight from dpkg/apt but correct me if I'm wrong.

image

Thanks a lot for the fast response I really enjoy it

@TheJackiMonster
Copy link
Collaborator

We do actually support Debian via a native package but not via the official repository unfortunately. So you could get the newest .deb package from the website here and install it manually if you don't like to use flatpaks. But this would lack automatic updates and there's currently an issue with the latest .deb package on Debian because I packaged it on Ubuntu which used a different compression algorithm as default (#1047: this has already been fixed for the upcoming packages).

Sure, I could try to contact the maintainers of the official repositories from Debian to update the package but I'm unsure whether it makes sense to put Manuskript into their repositories in current state anyway. We still have some quite important bugs to fix before I would say it's reliable enough for the expectations of most Debian users. ^^'

@ChargingBulle
Copy link
Author

via official .deb file...

dpkg-deb: error: archive 'manuskript-0.14.0-1.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive manuskript-0.14.0-1.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 manuskript-0.14.0-1.deb

@ChargingBulle
Copy link
Author

because I packaged it on Ubuntu which used a different compression algorithm as default

ok nevermind

@ChargingBulle
Copy link
Author

Is it fixed now?
I'm writing my story in a freaking .md file and I'm considering switching writing tools due to manuskript being broken for my OS.
Debian is one of the most widespread Distros out there

@TheJackiMonster
Copy link
Collaborator

I have repackaged version 0.14.0 a few days ago with the fixed script. So it should work now.

@Biep
Copy link

Biep commented Sep 23, 2022

Could anyone having (had) this problem please indicate so here, so as to make the devs update the repo faster? Thanks!

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

No branches or pull requests

3 participants