51bitquant / howtrader

Howtrader: A crypto quant framework for developing, backtesting, and executing your own trading strategies. Seamlessly integrates with TradingView and other third-party signals. Simply send a post request to automate trading and order placement. Supports Binance and Okex exchanges.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

按教程安装的qt报错,找不到问题在哪,请指教!

delphifans8 opened this issue · comments

Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\learnhowtrader\main_window.py", line 80, in
main()
File "C:\Users\Administrator\Desktop\learnhowtrader\main_window.py", line 52, in main
qapp = create_qapp()
File "C:\ProgramData\Anaconda3\envs\mytrader\lib\site-packages\howtrader\trader\ui\qt.py", line 28, in create_qapp
qapp.setStyleSheet(qdarkstyle.load_stylesheet(qt_api="pyside6"))
File "C:\ProgramData\Anaconda3\envs\mytrader\lib\site-packages\qdarkstyle_init_.py", line 364, in load_stylesheet
stylesheet = load_stylesheet(qt_api=qt_api, palette=palette)
File "C:\ProgramData\Anaconda3\envs\mytrader\lib\site-packages\qdarkstyle_init
.py", line 237, in _load_stylesheet
from qtpy.QtCore import QCoreApplication, QFile, QTextStream
File "C:\ProgramData\Anaconda3\envs\mytrader\lib\site-packages\qtpy\QtCore.py", line 116, in
Qt.MidButton = Qt.MouseButton.MiddleButton = Qt.MiddleButton
File "shibokensupport/enum_310.py", line 529, in setattr
AttributeError: Cannot reassign members.

please use the Pyside6 version 6.2.2, the latest version will be 6.4.0.
solution:
pip install Pyside6==6.2.2

We recommend you to use the python version 3.9, and the PySide Version 6.2.2 and doesn't work well with the latest version 6.4.4 or later.