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

打开vnpy后,选择CTA回测功能,显示如下错误信息,请问是pyqt5版本的问题吗?有人遇到过相似问题吗?希望大神给小白解惑,谢谢。
Traceback (most recent call last):
File "C:\Users\Administrator\Miniconda3\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 278, in open_widget
widget = widget_class(self.main_engine, self.event_engine)
File "C:\Users\Administrator\Miniconda3\lib\site-packages\vnpy\app\cta_backtester\ui\widget.py", line 47, in init
self.init_ui()
File "C:\Users\Administrator\Miniconda3\lib\site-packages\vnpy\app\cta_backtester\ui\widget.py", line 208, in init_ui
self.candle_dialog = CandleChartDialog()
File "C:\Users\Administrator\Miniconda3\lib\site-packages\vnpy\app\cta_backtester\ui\widget.py", line 1109, in init
self.init_ui()
File "C:\Users\Administrator\Miniconda3\lib\site-packages\vnpy\app\cta_backtester\ui\widget.py", line 1119, in init_ui
self.chart.add_plot("volume", maximum_height=200)
File "C:\Users\Administrator\Miniconda3\lib\site-packages\vnpy\chart\widget.py", line 72, in add_plot
plot = pg.PlotItem(axisItems={'bottom': self._x_axis})
File "C:\Users\Administrator\Miniconda3\lib\site-packages\pyqtgraph\graphicsItems\PlotItem\PlotItem.py", line 158, in init
self.setAxisItems(axisItems)
File "C:\Users\Administrator\Miniconda3\lib\site-packages\pyqtgraph\graphicsItems\PlotItem\PlotItem.py", line 325, in setAxisItems
if axis != self.axes[k]["item"]:
KeyError: 'bottom'

Member
avatar
加入于:
帖子: 2117
声望: 140

可参考https://www.vnpy.com/forum/topic/3998-macda-kai-ctahui-ce-mo-ban-de-shi-hou-chu-xian-zhe-ge-cuo-wu?page=1#pid14131

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

沪公网安备 31011502017034号