pyqt has a funky licensing. Maya uses Lgpl qt and pyqt license requires the license matches in order to distrtibute it. There isn't an lgpl version of py qt so Autodesk is SOL. This is why Nokia is developing PySide so we don't have this annoyance in the future and much of your pyqt code will work in pyside.
-deke On Thu, Jan 6, 2011 at 15:12, Judah Baron <[email protected]> wrote: > Yeah, thanks. I found this thread earlier today: > http://groups.google.com/group/python_inside_maya/browse_thread/thread/4fd12026fe2ac7bc?fwc=2 > Here's a link to the correct PyQt, generously provided by Nathan Horne, NOT > Autodesk. > http://nathanhorne.com/?p=229 > > > On Thu, Jan 6, 2011 at 1:12 PM, Amorano <[email protected]> wrote: >> >> Which PyQt? >> >> You need to match the version in 2011, because, in ADs infinite >> wisdom, that is how they want it to be. >> >> So for 2008 and 2009 we use 4.8 and for 2011 we are stuck in 4.7.1 >> >> Unless someone has a way of using newer versions which we just could >> not figure out. >> >> HTH >> >> On Jan 6, 10:32 am, Judah Baron <[email protected]> wrote: >> > I don't think this is the issue. The site-packages dir is clearly on my >> > sys.path, with PyQt4 just beneath it. >> > >> > Also, this is not a pymel issue. I'm just running Maya, or mayapy and >> > then >> > attempting to import PyQt4. >> > >> > >> > >> > On Thu, Jan 6, 2011 at 10:18 AM, Count Zer0 <[email protected]> wrote: >> > > Probably a load order issue. I think PyQt4 path needs to be >> > > established pretty early in the maya boot process, we have ours in our >> > > Maya.env. >> > >> > > Detailed thread on Maya boot order and injecting paths early enough >> > > here: >> > >http://bit.ly/dKdGYh >> > >> > > Let us know. >> > >> > > On Jan 6, 9:36 am, Judah Baron <[email protected]> wrote: >> > > > I am getting an import error in Maya 2011 when I attempt the >> > > > following: >> > >> > > > import PyQt4 >> > >> > > > # Error: ImportError: file <maya console> line 1: No module named >> > > > PyQt4 # >> > >> > > > I've checked the sys.path and it looks correct. >> > >> > > > When I run mayapy directly from the command line I get the same >> > > > error >> > > when I >> > > > attempt the import. >> > >> > > > Is there something I've missing/overlooking? Any help would be >> > > > greatly >> > > > appreciated. >> > >> > > > thanks, >> > > > -Judah >> > >> > > -- >> > >http://groups.google.com/group/python_inside_maya- Hide quoted text - >> > >> > - Show quoted text - >> >> -- >> http://groups.google.com/group/python_inside_maya > > -- > http://groups.google.com/group/python_inside_maya > -- http://groups.google.com/group/python_inside_maya
