Converting .ui file to .py in Maya 2018 gives an error

Converting .ui file to .py in Maya 2018 gives an error

Anonymous
Not applicable
1,821 Views
1 Reply
Message 1 of 2

Converting .ui file to .py in Maya 2018 gives an error

Anonymous
Not applicable

I'm looking to make UIs using Qt Designer. The issue is that I get a ui file I have to convert to a python file.

 

Upon looking online I find this page by autodesk: https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/Maya-Scr...

 

But running the script gives the following error: no module named pysideuic.

 

Upon digging further, it seems it has something to do with a change from pyside to pyside2.

Finally I find this article : https://medium.com/@nicholasRodgers/handling-legacy-tools-in-maya-2017-pyside2-baa53e48d5a2 which offers a script that seems to make the one given by autodesk (on the link above) to work.

 

Can I fix this any other way? Because I'm not familiar with this at all and don't know how hacky it is.

1,822 Views
1 Reply
Reply (1)
Message 2 of 2

AssassinKKD
Participant
Participant

I hope you already got the answer and if not the solution by autodesk you mentioned is for Maya 2016 and below with PySide but after Maya 2017 PySide upgraded to PySide2 so in the same solution just change second line to this

 

from pyside2uic import compileUi

0 Likes