SwimmingLiu/YOLOSHOW

TypeError: arguments did not match any overloaded call:

Closed this issue · 1 comments

  1. git clone https://github.com/SwimmingLiu/YOLOSHOW.git
  2. 将字体安装到windows上
  3. pip install -r requirements.txt
  4. python main.py
    出现第一次报错,ModuleNotFoundError: No module named 'qfluentwidgets'
    image
    当我使用pip安装后,pip install qfluentwidgets -i https://pypi.tuna.tsinghua.edu.cn/simple
    仍然出现以下报错
    (yolov8) E:\YOLOSHOW>python main.py
    Traceback (most recent call last):
    File "E:\YOLOSHOW\main.py", line 51, in
    yoloshow = yoloshowWindow()
    File "E:\YOLOSHOW\YOLOSHOW.py", line 1398, in init
    super(MyWindow, self).init()
    File "E:\YOLOSHOW\YOLOSHOW.py", line 63, in init
    self.setupUi(self)
    File "", line 1281, in setupUi
    File "D:\Anaconda\envs\yolov8\lib\site-packages\qfluentwidgets\components\widgets\combo_box.py", line 366, in init
    super().init(parent=parent)
    File "D:\Anaconda\envs\yolov8\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: typing.Optional[QWidget] = None): argument 'parent' has unexpected type 'PySide6.QtWidgets.QWidget'
    QPushButton(text: str, parent: typing.Optional[QWidget] = None): not enough arguments
    QPushButton(icon: QIcon, text: str, parent: typing.Optional[QWidget] = None): not enough arguments
    image
    请问如何解决啊?

已经解决了,下载全量的即可
pip install "PyQt-Fluent-Widgets[full]" -i https://pypi.org/simple/