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

ValueError: "Unable to convert 222222 to QColor" in pyqtgraph/functions.py when starting Tribler #7271

Closed
kozlovsky opened this issue Jan 16, 2023 · 1 comment · Fixed by #7272
Assignees
Milestone

Comments

@kozlovsky
Copy link
Contributor

After upgrading requirements I start getting this error when starting run_tribler.py:

Traceback (most recent call last):
  File "C:\dev\tribler\src\tribler\gui\start_gui.py", line 80, in run_gui
    window = TriblerWindow(process_manager, app_manager, settings, root_state_dir,
  File "C:\dev\tribler\src\tribler\gui\tribler_window.py", line 290, in __init__
    self.trust_graph_page.initialize_trust_graph()
  File "C:\dev\tribler\src\tribler\gui\widgets\trustgraphpage.py", line 105, in initialize_trust_graph
    graph_layout = pg.GraphicsLayoutWidget()
  File "C:\dev\tribler\venv\lib\site-packages\pyqtgraph\widgets\GraphicsLayoutWidget.py", line 51, in __init__
    GraphicsView.__init__(self, parent)
  File "C:\dev\tribler\venv\lib\site-packages\pyqtgraph\widgets\GraphicsView.py", line 80, in __init__
    self.setBackground(background)
  File "C:\dev\tribler\venv\lib\site-packages\pyqtgraph\widgets\GraphicsView.py", line 132, in setBackground
    brush = fn.mkBrush(background)
  File "C:\dev\tribler\venv\lib\site-packages\pyqtgraph\functions.py", line 343, in mkBrush
    return QtGui.QBrush(mkColor(color))
  File "C:\dev\tribler\venv\lib\site-packages\pyqtgraph\functions.py", line 272, in mkColor
    raise ValueError(f"Unable to convert {c} to QColor")
ValueError: Unable to convert 222222 to QColor
@kozlovsky kozlovsky self-assigned this Jan 16, 2023
@kozlovsky kozlovsky added this to the 7.13.0 milestone Jan 16, 2023
@drew2a
Copy link
Contributor

drew2a commented Jan 16, 2023

@kozlovsky could you please downgrade pyqtgraph to pyqtgraph==0.12.3 and check?

@drew2a drew2a closed this as completed in ff80708 Jan 16, 2023
drew2a added a commit that referenced this issue Jan 16, 2023
Fixes #7271: ValueError: "Unable to convert 222222 to QColor" in pyqtgraph/functions.py when starting run_tribler.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment