Error using PyQt (beginer question)

Error using PyQt (beginer question)

Anonymous
Not applicable
935 Views
2 Replies
Message 1 of 3

Error using PyQt (beginer question)

Anonymous
Not applicable

"ImportError: No module named PyQT4"

 

what this is mean, is somebody know how to fix it, I want to trying learning PyQt in Maya.

 

when I google it, I found answer like Maya doesn't know where the pyqt installed or something like that and I don't know how to tell Maya where the PyQt.

0 Likes
936 Views
2 Replies
Replies (2)
Message 2 of 3

cheng_xi_li
Autodesk Support
Autodesk Support

Hi Nicoz93,

 

If you want to use PyQt with Maya, you have to install it yourself. PyQt is under GNU license, we don't ship it with our binary package. There is a guide for building PyQt for Maya 2015 on our blog, please check it out.

 

However, we provide PySide with Maya since Maya 2014, I'd recommend you to get start with PySide instead.

 

Yours,

Li

Message 3 of 3

vijaya.prakash
Alumni
Alumni

Hi,

 

Did you build the PyQt library ? If no, Li is correct, you have to build PyQt4 library yourself. Maya doesn't ship any PyQt libraries by default. Instead, Autodesk provides guidelines to build and test the PyQt libraries. please check the below updated link.

 

http://around-the-corner.typepad.com/adn/2015/05/building-sip-and-pyqt-for-maya-2016.html

 

Thanks,

Vijaya Prakash.

0 Likes