[Python-modules-team] Bug#697348: python-qt4: uic.loadUi crashed with AttributeError in createWidget() when RadioButtons

Jerome Kieffer jerome.kieffer at edna-site.org
Fri Jan 4 09:31:04 UTC 2013


Package: python-qt4
Version: 4.7.3-1+b1
Severity: normal
Tags: upstream

Maybe this bug could be rated "critical" as it makes unrelated software on the system break ...

This bug apprears when a group of RadioButtons is defined in a UIC file, see attached example.
It has already been fixed in newer version of upstream (absent in wheezy) and in Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/514796

Here is an example of patch:

diff /usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py uiparser.py
184,188c184,185
<                 try:
<                     bg_name = bg_i18n.string
<                 except AttributeError:
<                     print("Error detected %s"%bg_i18n)
<                     bg_name = str(bg_i18n)
---
>                 bg_name = bg_i18n.string
> 

-- System Information:
Debian Release: 6.0.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-qt4 depends on:
ii  libc6                 2.11.3-4           Embedded GNU C Library: Shared lib
ii  libgcc1               1:4.4.5-8          GCC support library
ii  libpython2.6          2.6.6-8+b1         Shared Python runtime library (ver
ii  libqt4-assistant      4:4.6.3-4+squeeze1 Qt 4 assistant module
ii  libqt4-designer       4:4.6.3-4+squeeze1 Qt 4 designer module
ii  libqt4-help           4:4.6.3-4+squeeze1 Qt 4 help module
ii  libqt4-network        4:4.6.3-4+squeeze1 Qt 4 network module
ii  libqt4-script         4:4.6.3-4+squeeze1 Qt 4 script module
ii  libqt4-scripttools    4:4.6.3-4+squeeze1 Qt 4 script tools module
ii  libqt4-svg            4:4.6.3-4+squeeze1 Qt 4 SVG module
ii  libqt4-test           4:4.6.3-4+squeeze1 Qt 4 test module
ii  libqt4-webkit         4:4.6.3-4+squeeze1 Qt 4 WebKit module
ii  libqt4-xml            4:4.6.3-4+squeeze1 Qt 4 XML module
ii  libqt4-xmlpatterns    4:4.6.3-4+squeeze1 Qt 4 XML patterns module
ii  libqtcore4            4:4.6.3-4+squeeze1 Qt 4 core module
ii  libqtgui4             4:4.6.3-4+squeeze1 Qt 4 GUI module
ii  libstdc++6            4.4.5-8            The GNU Standard C++ Library v3
ii  python                2.6.6-3+squeeze7   interactive high-level object-orie
ii  python-sip [sip-api-7 4.10.2-1           Python/C++ bindings generator runt
ii  python-support        1.0.10             automated rebuilding support for P

python-qt4 recommends no packages.

Versions of packages python-qt4 suggests:
pn  python-qt4-dbg                <none>     (no description available)

-- no debconf information



More information about the Python-modules-team mailing list