Message 1 of 14
PyQt help
Not applicable
11-05-2007
08:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Sorry, i know this is a python q, but i didn't know where else to post it. I'm trying to get PyQt running under Maya 2k8 and have a few questions:
----
The docs included state that to run PyQt in maya you simply have to do the following:
1. Install everything (PyQt,Qt,Python2.5)
1. Copy the PyQt and SIP related files from Python25/lib/site-packages to Maya2008/Python/lib/site-packages
2. run the following code to test:
-----
All well and good, but here's what i actually had to do to get PyQt running in Maya:
-----
1. Install everything (PyQt,Qt,Python2.5)
2. Copy everything from Python25/lib/site-packages to Maya2008/Python/lib/site-packages
3. Add a reference in my PYTHONPATH variable to C:/Program Files/Autodesk/Maya2008/lib/site-packages/PyQt4
4. Run the following:
-----
Note that i have to refer to QApplication and QLabel with their full paths vs what is shown in the doc example.
My question is the obvious, am i missing something? Granted everything works, but the fact that what i'm doing is so diff from the included doc makes me wonder if there's not something wrong with my installs. Thanks in advance
----
The docs included state that to run PyQt in maya you simply have to do the following:
1. Install everything (PyQt,Qt,Python2.5)
1. Copy the PyQt and SIP related files from Python25/lib/site-packages to Maya2008/Python/lib/site-packages
2. run the following code to test:
import sys
import PyQt4 as qt
app = qt.QApplication(sys.argv)
hello = qt.QLavel("Hello world!",None)
hello.show()
-----
All well and good, but here's what i actually had to do to get PyQt running in Maya:
-----
1. Install everything (PyQt,Qt,Python2.5)
2. Copy everything from Python25/lib/site-packages to Maya2008/Python/lib/site-packages
3. Add a reference in my PYTHONPATH variable to C:/Program Files/Autodesk/Maya2008/lib/site-packages/PyQt4
4. Run the following:
import sys
import PyQt4 as qt
import Qt
# SystemError: dynamic module not initialized properly #
app = qt.QtGui.QApplication(sys.argv)
hello = qt.QtGui.QLabel("Hello World",None)
hello.show()
-----
Note that i have to refer to QApplication and QLabel with their full paths vs what is shown in the doc example.
My question is the obvious, am i missing something? Granted everything works, but the fact that what i'm doing is so diff from the included doc makes me wonder if there's not something wrong with my installs. Thanks in advance