VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 2
声望: 0

python run.py
Traceback (most recent call last):
File "/home/dbtrader/vnpy-trader/examples/veighna_trader/run.py", line 99, in <module>
main()
File "/home/dbtrader/vnpy-trader/examples/veighna_trader/run.py", line 47, in main
qapp = create_qapp()
File "/home/dbtrader/miniconda3/envs/vnpy3/lib/python3.10/site-packages/vnpy/trader/ui/qt.py", line 29, in create_qapp
qapp.setStyleSheet(qdarkstyle.load_stylesheet(qt_api="pyside6"))
File "/home/dbtrader/miniconda3/envs/vnpy3/lib/python3.10/site-packages/qdarkstyle/init.py", line 364, in load_stylesheet
stylesheet = _load_stylesheet(qt_api=qt_api, palette=palette)
File "/home/dbtrader/miniconda3/envs/vnpy3/lib/python3.10/site-packages/qdarkstyle/init.py", line 237, in _load_stylesheet
from qtpy.QtCore import QCoreApplication, QFile, QTextStream
File "/home/dbtrader/miniconda3/envs/vnpy3/lib/python3.10/site-packages/qtpy/QtCore.py", line 116, in <module>
Qt.MidButton = Qt.MouseButton.MiddleButton = Qt.MiddleButton
File "/home/dbtrader/miniconda3/envs/vnpy3/lib/python3.10/enum.py", line 480, in setattr
raise AttributeError('Cannot reassign members.')
AttributeError: Cannot reassign members.

Member
avatar
加入于:
帖子: 125
声望: 4

枚举值不能被修改

Member
avatar
加入于:
帖子: 4812
声望: 291

可以手动调整一下pyside6的版本,降到6.3.0以下试试看

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

沪公网安备 31011502017034号

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