Skip to content

Recolor update error again on linux #31

@shoaib281

Description

@shoaib281

I faced the same error as here. I updated my extension and now I'm facing a new error.

Anki Version ⁨2.1.53
Python 3.9.10 Qt 6.3.0 PyQt 6.3.0
OS: Kubuntu

Upon opening anki:

When loading '⁨ReColor⁩':
⁨Traceback (most recent call last):
  File "aqt.addons", line 244, in loadAddons
  File "/home/user/.local/share/Anki2/addons21/688199788/__init__.py", line 2, in <module>
    from . import colors
  File "/home/user/.local/share/Anki2/addons21/688199788/colors.py", line 198, in <module>
    recolor_python()
  File "/home/user/.local/share/Anki2/addons21/688199788/colors.py", line 51, in recolor_python
    apply_palette()
  File "/home/user/.local/share/Anki2/addons21/688199788/colors.py", line 84, in apply_palette
    palette.setColor(role, qcolor(conf_key))
  File "/home/user/.local/share/Anki2/addons21/688199788/colors.py", line 60, in qcolor
    return QColor(hex_color)
TypeError: arguments did not match any overloaded call:
  QColor(Qt.GlobalColor): argument 1 has unexpected type 'NoneType'
  QColor(int): too many arguments
  QColor(QRgba64): argument 1 has unexpected type 'NoneType'
  QColor(Any): argument 1 has unexpected type 'NoneType'
  QColor(): argument 1 has unexpected type 'NoneType'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions