I tried using "pyuic4 -p -d Dialog-Test.ui" on my Ubuntu 10.04 box to test the ui I made in QT4 Designer and I get an attribute error. It is quite large so I just included the traceback lines. It appears to have something to do with the KLed. Does anyone know how to fix this error.<br>
<br><br>Traceback (most recent call last):<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/port_v2/invoke.py", line 12, in invoke<br> exit_status = driver.invoke()<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/driver.py", line 35, in invoke<br>
return self._preview()<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/driver.py", line 49, in _preview<br> widget = loadUi(self._ui_file)<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/__init__.py", line 177, in loadUi<br>
return DynamicUILoader().loadUi(uifile, baseinstance)<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/Loader/loader.py", line 21, in loadUi<br> return self.parse(filename)<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 813, in parse<br>
actor(elem)<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 661, in createUserInterface<br> self.traverseWidgetTree(elem)<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 639, in traverseWidgetTree<br>
handler(self, child)<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 163, in createWidget<br> self.stack.push(self.setupObject(widgetClass(elem), parent, elem))<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 136, in setupObject<br>
self.wprops.setProperties(obj, branch)<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/properties.py", line 345, in setProperties<br> prop_value = self.convert(prop, widget)<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/properties.py", line 310, in convert<br>
return func(prop[0], **args)<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/properties.py", line 74, in _enum<br> return self._pyEnumMember(prop.text)<br> File "/usr/lib/pymodules/python2.6/PyQt4/uic/properties.py", line 53, in _pyEnumMember<br>
return getattr(getattr(QtGui, prefix), membername)<br>AttributeError: 'module' object has no attribute 'KLed'<br>