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

Error on drawing charts #17

Open
mese79 opened this issue Jan 7, 2020 · 0 comments
Open

Error on drawing charts #17

mese79 opened this issue Jan 7, 2020 · 0 comments

Comments

@mese79
Copy link

mese79 commented Jan 7, 2020

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  
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

No branches or pull requests

1 participant