--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: python-kde4: pykdeuic4 exits due to unknown base class in .ui
- From: Christoph Burgmer <chrislb@gmx.de>
- Date: Sun, 18 May 2008 16:48:53 +0200
- Message-id: <20080518144853.15428.33017.reportbug@localhost.localdomain>
Package: python-kde4
Version: 4.0.2-1-1
Severity: normal
Custom classes inserted by Qt Designer 4 yield a base class from which they
are derived. If pykdeuic4 doesn't know about the base class it will exit
raising an error:
Traceback (most recent call last):
File "/usr/bin/pykdeuic4", line 128, in <module>
main()
File "/usr/bin/pykdeuic4", line 125, in main
processUI(args[0], output_filename, exe)
File "/usr/bin/pykdeuic4", line 54, in processUI
winfo = compiler.UICompiler().compileUi(uifile, output)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/Compiler/compiler.py",
line 71, in compileUi
w = self.parse(input_stream)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 569,
in parse
actor(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 428,
in createUserInterface
self.traverseWidgetTree(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 406,
in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 153,
in createWidget
self.stack.push(self.setupObject(widgetClass(elem), parent, elem))
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 128,
in setupObject
obj = self.factory.createQObject(clsname, name, args, is_attribute)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/objcreator.py", line 59,
in createQObject
classType = self.findQObjectType(classname)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/objcreator.py", line 67,
in findQObjectType
w = module.search(classname)
File
"/usr/lib/python2.5/site-packages/PyQt4/uic/Compiler/qobjectcreator.py",
line 74, in search
baseClass = self._resolveBaseclass(self._widgets[cls][0])
File
"/usr/lib/python2.5/site-packages/PyQt4/uic/Compiler/qobjectcreator.py",
line 68, in _resolveBaseclass
raise ValueError, "unknown baseclass %s" % (baseClass,)
ValueError: unknown baseclass KComboBox
The class generating this error is the KHistoryComboBox.
I'll attach the corresponding .ui file.
See #475403 for an similar bug in handling of custom classes of pykdeuic4.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22 (PREEMPT)
Locale: LANG=de_DE@euro, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-kde4 depends on:
ii kdebase-runtime 4:4.0.2-1+b1 runtime components from the offici
ii kdelibs5 4:4.0.2-1+b1 core libraries for all KDE 4 appli
ii libc6 2.7-11 GNU C Library: Shared libraries
ii libgcc1 1:4.3.0-4 GCC support library
ii libqt4-core 4.4.0-2 transitional package for Qt 4 core
ii libqt4-gui 4.4.0-2 transitional package for Qt 4 GUI
ii libstdc++6 4.3.0-4 The GNU Standard C++ Library v3
ii python 2.5.2-1 An interactive high-level object-o
ii python-central 0.6.6 register and build utility for Pyt
ii python-qt4 4.3.3-3 Python bindings for Qt4
python-kde4 recommends no packages.
-- no debconf information
<ui version="4.0" >
<class>Form</class>
<widget class="QWidget" name="Form" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<widget class="KHistoryComboBox" name="khistorycombobox" >
<property name="geometry" >
<rect>
<x>130</x>
<y>140</y>
<width>81</width>
<height>24</height>
</rect>
</property>
</widget>
</widget>
<customwidgets>
<customwidget>
<class>KHistoryComboBox</class>
<extends>KComboBox</extends>
<header>khistorycombobox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
--- End Message ---
--- Begin Message ---
- To: 481790-done@bugs.debian.org
- Subject: Re: Bug#481790: python-kde4: pykdeuic4 exits due to unknown base class in .ui
- From: Sune Vuorela <debian@pusling.com>
- Date: Mon, 13 Jul 2009 00:39:53 +0200
- Message-id: <200907130039.56501.debian@pusling.com>
- In-reply-to: <200907121519.52135.chrislb@gmx.de>
- References: <200907121203.34357.debian@pusling.com> <200907121519.52135.chrislb@gmx.de>
On Sunday 12 July 2009 15:19:51 Christoph Burgmer wrote:
> Am Sonntag, 12. Juli 2009 schrieb Sune Vuorela:
> > Hi
> >
> > Long ago, you reported this bug
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481790
> >
> > Many things has happened since then. Does this bug still apply ?
>
> pykdeuic4 still fails on the given example. The problem is that the custom
> widget KHistoryComboBox itself is derived from a custom widget KComboBox,
> which pykdeuic4 doesn't know about.
>
> But Qt4 Designer now stores both custom widget definitions, so that the
> cause of this error doesn't exist anymore. It seems that this was never a
> bug of pykdeuic4 but of Qt4 Designer.
>
> In short: this report can be closed.
Okay. Thanks for telling.
/Sune
--
Do you know how to debug a fan from iMac?
You neither have to telnet to the shell of a analogic processor on the
analogic SCSI forward, nor must turn off the coaxial gadget for disabling a 3D
forward to a software.
--- End Message ---