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

Traceback (most recent call last):
File "/Users/wanghaibo/opt/miniconda3/lib/python3.7/site-packages/vnpy/trader/ui/mainwindow.py", line 281, in open_widget
widget = widget_class(self.main_engine, self.event_engine)
File "/Users/wanghaibo/opt/miniconda3/lib/python3.7/site-packages/vnpy/app/cta_backtester/ui/widget.py", line 48, in init
self.init_ui()
File "/Users/wanghaibo/opt/miniconda3/lib/python3.7/site-packages/vnpy/app/cta_backtester/ui/widget.py", line 210, in init_ui
self.candle_dialog = CandleChartDialog()
File "/Users/wanghaibo/opt/miniconda3/lib/python3.7/site-packages/vnpy/app/cta_backtester/ui/widget.py", line 1142, in init
self.init_ui()
File "/Users/wanghaibo/opt/miniconda3/lib/python3.7/site-packages/vnpy/app/cta_backtester/ui/widget.py", line 1152, in init_ui
self.chart.add_plot("volume", maximum_height=200)
File "/Users/wanghaibo/opt/miniconda3/lib/python3.7/site-packages/vnpy/chart/widget.py", line 72, in add_plot
plot = pg.PlotItem(axisItems={'bottom': self._x_axis})
File "/Users/wanghaibo/opt/miniconda3/lib/python3.7/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 158, in init
self.setAxisItems(axisItems)
File "/Users/wanghaibo/opt/miniconda3/lib/python3.7/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 325, in setAxisItems
if axis != self.axes[k]["item"]:
KeyError: 'bottom'

Member
avatar
加入于:
帖子: 2013
声望: 133

可以先print一下这个item看看

Administrator
avatar
加入于:
帖子: 4595
声望: 262

pyqtgraph版本问题,看下Github上代码里requirements.txt里的pyqtgraph版本

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

沪公网安备 31011502017034号