vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 1
声望: 0

Traceback (most recent call last):
File "/home/xmeteor/PycharmProjects/vnpy/vnpy/trader/ui/mainwindow.py", line 281, in open_widget
widget = widget_class(self.main_engine, self.event_engine)
File "/home/xmeteor/PycharmProjects/vnpy/vnpy/app/cta_backtester/ui/widget.py", line 49, in init
self.init_ui()
File "/home/xmeteor/PycharmProjects/vnpy/vnpy/app/cta_backtester/ui/widget.py", line 212, in init_ui
self.candle_dialog = CandleChartDialog()
File "/home/xmeteor/PycharmProjects/vnpy/vnpy/app/cta_backtester/ui/widget.py", line 1153, in init
self.init_ui()
File "/home/xmeteor/PycharmProjects/vnpy/vnpy/app/cta_backtester/ui/widget.py", line 1163, in init_ui
self.chart.add_plot("volume", maximum_height=200)
File "/home/xmeteor/PycharmProjects/vnpy/vnpy/chart/widget.py", line 72, in add_plot
plot = pg.PlotItem(axisItems={'bottom': self._x_axis})
File "/home/xmeteor/.local/lib/python3.8/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 158, in init
self.setAxisItems(axisItems)
File "/home/xmeteor/.local/lib/python3.8/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 325, in setAxisItems
if axis != self.axes[k]["item"]:
KeyError: 'bottom'


vn.py - 2.1.7.1
Python - 3.8.5
PyQt5 - 5.15.2
Numpy - 1.19.4
RQData - 2.9.17

Member
avatar
加入于:
帖子: 1379
声望: 84

pyqtgraph版本有问题,请查看Github上代码里requirements.txt里的版本,然后降级下好了。

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3