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.com
www.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

Reply via email to