Maya 2016 (OS X) hangs on using PySide or PyQt

Maya 2016 (OS X) hangs on using PySide or PyQt

Anonymous
Not applicable
470 Views
1 Reply
Message 1 of 2

Maya 2016 (OS X) hangs on using PySide or PyQt

Anonymous
Not applicable

Hey everyone.

 

I'm trying some basic stuff with PySide. But when where I import anything other than the library, OS X's wheel of death appears and Maya stops responding.

 

This is with PySide and PyQt. 

 

Example code:

import PySide.QtCore as qc
import PySide.QtGui as qg

class simpleUI(qg.QDialog):
    def __init__(self):
        qg.QDialog.__init__(self)
        self.setWindowTitle('Simple UI')
        self.setWindowFlags(qc.Qt.WindowStaysOnTopHint)
        self.setModal(False)
        self.setFixedHeight(250)
        self.setFixedWidth(300)

dialog = simpleUI()
dialog.show()

 

I've installed them both on my system via Brew. Do I need to do anything more to make Maya and PySide/Qt talk nicely? PySide/Qt both work well outside of maya, so I can only think it's a configuration issue. 

 

The error report when I forced quit Maya:

https://paste.ee/p/q4mvk#

0 Likes
471 Views
1 Reply
Reply (1)
Message 2 of 2

vijaya.prakash
Alumni
Alumni

Hi,

 

I think you are using the default PyQt that comes with OS X. But Maya uses the customized PyQt. You have to download the PyQt sources and build it against Maya. Then use those libraries.

 

Please check the following link for more information.

 

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

 

Thanks,

Vijaya Prakash.

0 Likes