Hi Shannon, First thing you will want to do is ditch python3. its not really of any use to you when developing for Maya, since Maya is only on python 2.x anyways. The trick with using PyQt/PySide for Maya is that it needs to be compiled against the same binary compatible version of Qt that ships with Maya. You will find, when searching, that many people have been providing pre-built installers for PyQt into Maya. I was maintaining some for OSX, and linking to others supporting Linux/Windows.
Now, with PySide shipping with Maya, it just makes sense to use that unless you have specific dependencies on PyQt or want to do the install yourself. I have used both PyQt and Pyside, and when using PyQt with SIP API set to version 2, they are pretty much the same thing. Although I've noticed some bugs here and there with PySide, I wouldn't say PyQt is clearly any better or worse. Ultimately when you are using SIP with API 2, the only major different is the import statements, and a few naming differences (http://qt-project.org/wiki/Signals_and_Slots_in_PySide) There is also the difference that PySide uses shiboken, while PyQt uses sip. They both accomplish the same goal when needing to access Qt pointers in Maya All in all, I say stick with PySide since its built in and you don't even have to think twice about it :-) On Sep 20, 2013, at 6:57 PM, Shannon Davis wrote: > On Friday, September 20, 2013 12:51:11 AM UTC-6, Shannon Davis wrote: >> On Thursday, September 19, 2013 10:09:54 PM UTC-6, Shannon Davis wrote: >>> Now I see myself as fairly geeky and I take pride it in. I found just >>> yesterday that Qt has become a part of Maya. I had put Maya on the >>> backburner as something to play with when I get the urge. But there is so >>> much I can do as I have been studying Qt for about 6 months and got fairly >>> good with it. >>> >>> So I have been trying every since yesterday to get Maya 2014 to work with >>> the Qt designer inside of it. The Documentation is dodgy and after >>> installing python 3.3.2, PyQt GPL v4.10.3 for Python v3.3(x64), sip which I >>> had no idea of what to do with or run, set the environment path to my >>> script file in Maya, and tried to run a simple script. I am still stuck >>> with an error on the first line and the 4th line. >>> >>> # Error: >>> line 1: ImportError: file <maya console> line 4: cannot import name uic # >>> >>> I was getting an error for no sip module also, but I commented it out so I >>> could tackle the two above. >>> >>> So what am I not doing? Where would I be going wrong. >>> >>> Is there a clear guide as to what to do to get Maya working with PyQt. >>> >>> I even found out that it is packaged with PySide. So I changed it from PyQt >>> to PySide but I am hearing PyQt is better. Somebody help please so I can >>> get over this first little hump. >> >> >> &&&&&&&&&&&&&&&&&&& >> >> I knew my geek would prevail, and I found my way over the hump after trying >> just about everything and nobody seeming to have an answer. >> >> I found this.... >> >> www.geoffsamuel.com/Tutorials/Install_Maya_QT.php >> >> Follow the directions on this site. It involves copying out of your python >> file and pasting the files you will need in your Python file that is inside >> of Maya autodesk along with the other files ie PySide and Shiboken that >> comes with maya. PyQt4 and sip.pyd need to be in that same file. >> >> I know it seems basic, but everybody have to break into something sometimes >> and I hope this keep someone else from wasting 2 days trying to figure it >> out. >> >> That link was the solution to my problem and I am going forward with my >> "happy coding". > > To add to it the link says it is for Maya 2012, but the directions work fine > for 2014 too. > > -- > 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 post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- 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 post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
