Hello tehre. Thank you for your response.
I have made the environment variable and now I seem to be able to 'import pumpThread' without any errors. However, when I try to run a script in /devkit/ import mysample.py; mysample.mysample() it launches an UI but then maya completely freezes. Does anyone know how to solve this problem? Cheers, D On Jun 26, 8:33 pm, Erkan Özgür Yılmaz <[email protected]> wrote: > You need to add this path: > > for windows: > C:\Program Files\Autodesk\Maya2011\devkit\other\PyQtScripts\qt > > for linux: > /usr/autodesk/maya/devkit/other/PyQtScripts/qt > > to your PYTHONPATH environment variable (in the system environments or in > Maya.env file), or append it to sys.path by > import sys > sys.append( the_path ) > > just before your code > > E.Ozgur Yilmaz > Lead Technical Director > eoyilmaz.blogspot.comwww.ozgurfx.com > > > > On Sat, Jun 26, 2010 at 8:59 AM, efecto <[email protected]> wrote: > > Hello. > > > I have been trying to run the example in Maya 2011 eg) devkit\other > > \PyQtScripts\qt\myMakeStuff.py > > > but I got some problems. I have also tried from zGUI.makeStuff import > > Ui_Dialog but got the same error. > > > import sys > > from PyQt4 import QtCore, QtGui > > from makeStuff import Ui_Dialog > > import maya.cmds as cmds > > import pumpThread as pt > > > Error: ImportError: No module named makeStuff > > # Error: ImportError: No module named pumpThread # > > > This simple code works though. > > import sys > > from PyQt4 import QtGui as qt > > app = qt.QApplication(sys.argv) > > hello = qt.QLabel("Hello world!", None) > > hello.show() > > > Does anyone know what I'm missing? > > > Thanks! > > > -- > >http://groups.google.com/group/python_inside_maya -- http://groups.google.com/group/python_inside_maya
