Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
delphifans8 opened this issue Oct 15, 2022 · 2 comments
Open

Comments

@delphifans8
Copy link

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.

@delphifans8 delphifans8 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 15, 2022
@delphifans8 delphifans8 reopened this Oct 15, 2022
@51bitquant
Copy link
Owner

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

@51bitquant
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants