Skip to content

Conversation

@clst
Copy link

@clst clst commented Jul 28, 2025

When I tried the git version from AUR on my Arch install it crashed when drawing the Chart.

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/visram/app.py", line 65, in onResultsReady
    self.chart.updateChart(process_graph)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/visram/app.py", line 124, in updateChart
    angle = self.drawProcess(pid, angle, 0,
                             process_graph)
  File "/usr/lib/python3.13/site-packages/visram/app.py", line 141, in drawProcess
    self.drawWedge(color, angle, angle2, depth, depth + 1, pid,
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                   process_graph)
                   ^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/visram/app.py", line 177, in drawWedge
    brush = QtGui.QBrush(QtGui.QColor(*(c * 255 for c in color)))
                         ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
  QColor(color: Qt.GlobalColor): argument 1 has unexpected type 'numpy.float64'
  QColor(rgb: int): argument 1 has unexpected type 'numpy.float64'
  QColor(rgba64: QRgba64): argument 1 has unexpected type 'numpy.float64'
  QColor(variant: Any): too many arguments
  QColor(): too many arguments
  QColor(r: int, g: int, b: int, alpha: int = 255): argument 1 has unexpected type 'numpy.float64'
  QColor(aname: Optional[str]): argument 1 has unexpected type 'numpy.float64'
  QColor(acolor: Union[QColor, Qt.GlobalColor]): argument 1 has unexpected type 'numpy.float64'

This fixes it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant