Hi Justin, thanks a lot for this, I realized it a couple of hours after I wrote this topic, the .profile PYTHONPATH screws up my maya.env variable, so I would install another copy of qt into python 2.6 as you said :)
cheers! Matteo On Tuesday, July 24, 2012 7:07:46 PM UTC+2, Justin Israel wrote: > > Most likely the problem is that your only install of PyQt4 is within the > Maya python site-packages location. This pythonpath is available when you > are working within Maya, but from a command line, you probably do not have > it in your PYTHONPATH > > You can either add the location to your path, or, you can install another > version of PyQt4 to the standard location with yum or manually. > > Here is a way to just do a one-off run of the command without permanently > changing the path: > > PYTHONPATH=/usr/autodesk/maya/lib/python2.6/site-packages:$PYTHONPATH pyuic4 > -h > > Otherwise, you can edit your ~/.profile and add it permanently : > > export PYTHONPATH=$PYTHONPATH:/usr/autodesk/maya/lib/ > python2.6/site-packages > > > > On Mon, Jul 23, 2012 at 6:28 AM, Matteo Di Lena > <[email protected]>wrote: > >> Hello everybody, >> I'm new to this page and, most important, to python and pyqt! >> >> While setting up the whole pyqt (damn long) process I encountered a >> little error, everything works just fine inside maya, but >> when I try to run the utility to convert UIs in PyQt I get this error: >> >> $ pyuic4 -h >> Traceback (most recent call last): >> File >> "/usr/autodesk/maya/lib/python2.6/site-packages/PyQt4/uic/pyuic.py", line >> 31, in <module> >> from PyQt4 import QtCore >> ImportError: No module named PyQt4 >> >> I'm on linux (centOs)...I setup pyqt almost only for have the ability to >> convert interfaces, and it's the only thing that doesn't work! :D >> >> So any help is appreciated, thank you all in advance! >> >> Matteo >> >> -- >> view archives: http://groups.google.com/group/python_inside_maya >> change your subscription settings: >> http://groups.google.com/group/python_inside_maya/subscribe >> > > -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
