motionbuilder 2016 PyQt4

641 views Asked by At

I have a question about PyQt4 in motionbuilder 2016 I have successfully installed Pyqt4 from pip

and it show up "have Requirement already satisfied: PyQt4 in c:\python27\lib\site-packages (4.11.4) "

but when import the module in motionbuilder by using import PyQt4 is have the error : "ImportError: No module named PyQt4"

Any suggestions would be appreciated.

2

There are 2 answers

2
Akram Parvez On

Motion Builder comes with PySide installed which is PyQt4's alternative version of Python QT library. Try importing from PySide for e.g.

from PySide import QtGui

Example

0
Cyrus On

I have found out the problem and solved Uninstall the Python2.7 and reinstall again, getting the new version of Pip, install the whl file by using pip it solved, i think is my sys.path mass up!