VeighNa量化社区
你的开源社区量化交易平台
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
加入于:
帖子: 4774
声望: 289

可以先print一下这个item看看

Administrator
avatar
加入于:
帖子: 4504
声望: 322

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

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

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】