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: [EMAIL PROTECTED], 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>

Reply via email to