I actually just copy the directories from PyQt4 from /lib/site-packages to Maya's own Python directory at:

C:\Program Files\Autodesk\Maya2013\Python\Lib\site-packages

It seems to be the most reliable result for me so far (using pyqt.pth files sometimes works/doesn't work based off the user PYTHONPATH env var, and I haven't bothered to figure out what exactly goes wrong, so I've taken to doing this instead for users and just running a robocopy batch script over the network for coworkers to copy over the necessary dependencies.)

Hope that helps!

Yours sincerely,
Siew Yi Liang

On 7/16/2014 7:37 PM, Erkan Özgür Yılmaz wrote:

Is there any particular reason why you are not using PySide instead. It is already shipping with Maya, no need to compile anything.

Ozgur
eoyilmaz.blogspot.com <http://eoyilmaz.blogspot.com>

On Jul 17, 2014 5:31 AM, "Fredrik Averpil" <[email protected] <mailto:[email protected]>> wrote:

    You'll have to compile PyQt:
    
http://download.autodesk.com/us/support/files/maya_documentation/pyqtmaya2014.pdf

    Sent from my iPhone

    On tors, jul 17, 2014 at 3:52 fm, Gyurma <[email protected]
    <mailto:[email protected]>> wrote:

        Hi,

        I'm not very familiar with how to set this up, I read a few
        things downloaded pyqt, installed but obviously not done it
        right because it does not work under maya.

        when I do a simple

        from PyQt4 import QtCore, QtGui

        it just says no such module. Probably missing some env var?
        Not sure as I never tried such setup but would be keen to use
        pyqt.

        I'd really appreciate some help.

        Thank You
        Gyuri
-- You received this message because you are subscribed to the
        Google Groups "Python Programming for Autodesk Maya" group.
        To unsubscribe from this group and stop receiving emails from
        it, send an email to
        [email protected]
        <mailto:[email protected]>.
        To view this discussion on the web visit
        
https://groups.google.com/d/msgid/python_inside_maya/CAFHVYoSLHcoTcStZRMntddTvd9R6L7KMdXP4yH91289R3qiESg%40mail.gmail.com
        
<https://groups.google.com/d/msgid/python_inside_maya/CAFHVYoSLHcoTcStZRMntddTvd9R6L7KMdXP4yH91289R3qiESg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
        For more options, visit https://groups.google.com/d/optout.

-- You received this message because you are subscribed to the Google
    Groups "Python Programming for Autodesk Maya" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to [email protected]
    <mailto:[email protected]>.
    To view this discussion on the web visit
    
https://groups.google.com/d/msgid/python_inside_maya/cacdfdb4d20f0b254138eee5e044b7%40ip-10-0-3-241
    
<https://groups.google.com/d/msgid/python_inside_maya/cacdfdb4d20f0b254138eee5e044b7%40ip-10-0-3-241?utm_medium=email&utm_source=footer>.
    For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAGNmyx78A5tX%2BVBVbC8ixS8dxbsSL5MFkdNaWXtnv7a-2HvcMg%40mail.gmail.com <https://groups.google.com/d/msgid/python_inside_maya/CAGNmyx78A5tX%2BVBVbC8ixS8dxbsSL5MFkdNaWXtnv7a-2HvcMg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Python 
Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/53C74DA8.3080405%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to