Skip to content

Error on drawing charts #17

@mese79

Description

@mese79

Hi
When i run quantdom and hit load button i got thie error:

qt5ct: using qt5ct plugin
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/quantdom/ui.py", line 424, in _update_quotes_chart
    self.quotes_tab.update_chart(self.symbol)
  File "/usr/local/lib/python3.7/dist-packages/quantdom/ui.py", line 292, in update_chart
    self.chart.plot(symbol)
  File "/usr/local/lib/python3.7/dist-packages/quantdom/lib/charts.py", line 554, in plot
    self._update_quotes_chart()
  File "/usr/local/lib/python3.7/dist-packages/quantdom/lib/charts.py", line 474, in _update_quotes_chart
    self.chart.addItem(_get_chart_points(self.style))
  File "/usr/local/lib/python3.7/dist-packages/quantdom/lib/charts.py", line 791, in _get_chart_points
    return CandlestickItem()
  File "/usr/local/lib/python3.7/dist-packages/quantdom/lib/charts.py", line 355, in __init__
    self.generatePicture()
  File "/usr/local/lib/python3.7/dist-packages/quantdom/lib/utils.py", line 52, in wrapper
    res = fn(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/quantdom/lib/charts.py", line 384, in generatePicture
    self._generate(p)
  File "/usr/local/lib/python3.7/dist-packages/quantdom/lib/charts.py", line 416, in _generate
    p.drawRects(*rects[Quotes.close < Quotes.open])
TypeError: arguments did not match any overloaded call:
  drawRects(self, QRectF, *): not enough arguments
  drawRects(self, Iterable[QRectF]): not enough arguments
  drawRects(self, QRect, *): not enough arguments
  drawRects(self, Iterable[QRect]): not enough arguments

Any idea?
I have installed:

PyQt5       5.12.3       
PyQt5-sip   4.19.19      
pyqtgraph   0.10.0  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions