SwimmingLiu/YOLOSHOW

when i run main.py report TypeError

Closed this issue · 4 comments

Microsoft Windows [版本 10.0.22000.2538]
TypeError: arguments did not match any overloaded call:
QPushButton(parent: Optional[QWidget] = None): argument 'parent' has unexpected type 'PySide6.QtWidgets.QWidget'
QPushButton(text: Optional[str], parent: Optional[QWidget] = None): not enough arguments
QPushButton(icon: QIcon, text: Optional[str], parent: Optional[QWidget] = None): not enough arguments

Same question in #4

I tried this solution , still report this:
📢 Tips: QFluentWidgets Pro is now released. Click https://qfluentwidgets.com/pages/pro to learn more about it.

QCssParser::parseHexColor: Unknown color name '#fffff'
QCssParser::parseHexColor: Unknown color name '#fffff'
Traceback (most recent call last):
File "main.py", line 8, in
yoloshow = MyWindow()
File "E:\YOLO_show\YOLOSHOW\YOLOSHOW.py", line 1179, in init
super(MyWindow, self).init()
File "E:\YOLO_show\YOLOSHOW\YOLOSHOW.py", line 53, in init
self.setupUi(self)
File "", line 1240, in setupUi
File "D:\ANACONDA\envs\yolo_show\lib\site-packages\qfluentwidgets\components\widgets\combo_box.py", line 366, in init
super().init(parent=parent)
File "D:\ANACONDA\envs\yolo_show\lib\site-packages\qfluentwidgets\components\widgets\combo_box.py", line 61, in init
super().init(parent=parent)
TypeError: arguments did not match any overloaded call:
QPushButton(parent: Optional[QWidget] = None): argument 'parent' has unexpected type 'PySide6.QtWidgets.QWidget'
QPushButton(text: Optional[str], parent: Optional[QWidget] = None): not enough arguments
QPushButton(icon: QIcon, text: Optional[str], parent: Optional[QWidget] = None): not enough arguments

Maybe you can try this

pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install "PySide6-Fluent-Widgets[full]" -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -U Pyside6 -i https://pypi.tuna.tsinghua.edu.cn/simple

done! thank you for your patiance