yamahigashi/MayaTransferInpaintWeights

Method to Resolve "No module named 'Qt'" Error

HJYblur opened this issue · 1 comments

In case anyone has encountered the same error as me, please go to the ui.py file and replace line 7-25 to the codes below.
This is because Maya has installed PySide2 instead of Qt module acquiescently.

from PySide2.QtWidgets import (
    QApplication,
    QWidget,
    QLineEdit,
    QPushButton,
    QLabel,
    QSlider,
    QHBoxLayout,
    QVBoxLayout,
    QRadioButton,
    QGroupBox,
    QSpacerItem,
    QSizePolicy,
)

from PySide2.QtCore import (
    Qt,
    QSize,
)

Thank you for your reporting :)
For better compatibility, please use Qt.py