[Marble-devel] Marble with python bindings
Tony Peña
emperor.cu at gmail.com
Sun Jan 8 22:25:53 UTC 2012
Hi list,
this is part of my app
and as all can see works in qtdesigner
http://i.imgur.com/sNA50.png
I'm try to develop an app and I want to use marble, but when I compiled,
only can get the QWidget marble for QtDesigner, because when i put the
marble into my app in the QTabWidget, all fine. and save but, i get this
pyuic4 QtUI/MainWindow_UI.ui > modules/MainWindow_UI.py
Unknown Qt widget: Marble.MarbleWidget
I read some mail archives, not is with pyui4 else pykdeuic4 and with that
got this errors
pykdeuic4 QtUI/MainWindow_UI.ui > modules/MainWindow_UI.py
Traceback (most recent call last):
File "/usr/bin/pykdeuic4", line 156, in <module>
main()
File "/usr/bin/pykdeuic4", line 153, in main
processUI(source_ui, output_filename, exe)
File "/usr/bin/pykdeuic4", line 91, in processUI
winfo = comp.compileUi(uifile, output, None)
File "/usr/lib/python2.7/dist-packages/PyQt4/uic/Compiler/compiler.py",
line 119, in compileUi
w = self.parse(input_stream)
File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line 927,
in parse
actor(elem)
File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line 770,
in createUserInterface
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line 748,
in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line 224,
in createWidget
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line 748,
in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line 224,
in createWidget
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line 748,
in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line 224,
in createWidget
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line 748,
in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line 215,
in createWidget
self.stack.push(self.setupObject(widget_class, parent, elem))
File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line 176,
in setupObject
obj = self.factory.createQObject(clsname, name, args, is_attribute)
File "/usr/lib/python2.7/dist-packages/PyQt4/uic/objcreator.py", line
108, in createQObject
raise NoSuchWidgetError(classname)
PyQt4.uic.exceptions.NoSuchWidgetError: Unknown Qt widget:
Marble.MarbleWidget
other thing is this when I type at ipython
In [1]: from PyKDE4.marble import *
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-9cb3cfbadbf9> in <module>()
----> 1 from PyKDE4.marble import *
ImportError: No module named marble
so, what have to do? to can going devel?
--
Antonio Peña
Secure email with PGP 0x8B021001 available at http://pgp.mit.edu
Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20120108/3600f791/attachment.html>
More information about the Marble-devel
mailing list