Your message dated Mon, 29 Oct 2007 19:02:00 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#445337: fixed in python-qt4 4.3.1-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: python-qt4
Version: 4.3-7

Hello,

There is a bug in python-qt4 which causes software-properties-kde
to crash in Turkish locale (tr_TR.UTF-8). This bug is already
fixed in (K)Ubuntu. Please see

https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/97420

for more information.

Here's a summary of the bug:

When one tries to start software-properties-kde, it fails
with the following output:

/usr/lib/python2.4/site-packages/apt/__init__.py:18: FutureWarning: apt API not 
stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
Traceback (most recent call last):
  File "/usr/bin/software-properties-kde", line 92, in ?
    app = SoftwarePropertiesKDE(datadir=data_dir, options=options, file=file)
  File 
"/var/lib/python-support/python2.4/softwareproperties/kde/SoftwarePropertiesKDE.py",
 line
66, in __init__
    self.userinterface = SoftwarePropertiesKDEUI(datadir)
  File 
"/var/lib/python-support/python2.4/softwareproperties/kde/SoftwarePropertiesKDE.py",
 line
52, in __init__
    uic.loadUi("%s/designer/main.ui" % datadir, self)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/__init__.py", line 93, in 
loadUi
    return loader.DynamicUILoader().loadUi(uifile, baseinstance)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/Loader/loader.py", line 25, 
in loadUi
    return self.parse(filename)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 553, in 
parse
    actor(elem)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 412, in 
createUserInterface
    self.traverseWidgetTree(elem)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 390, in 
traverseWidgetTree
    handler(self, child)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 285, in 
createLayout
    self.traverseWidgetTree(elem)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 390, in 
traverseWidgetTree
    handler(self, child)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 293, in 
handleItem
    self.traverseWidgetTree(elem)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 390, in 
traverseWidgetTree
    handler(self, child)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 160, in 
createWidget
    self.traverseWidgetTree(elem)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 390, in 
traverseWidgetTree
    handler(self, child)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 160, in 
createWidget
    self.traverseWidgetTree(elem)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 390, in 
traverseWidgetTree
    handler(self, child)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 285, in 
createLayout
    self.traverseWidgetTree(elem)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 390, in 
traverseWidgetTree
    handler(self, child)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 293, in 
handleItem
    self.traverseWidgetTree(elem)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 390, in 
traverseWidgetTree
    handler(self, child)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 160, in 
createWidget
    self.traverseWidgetTree(elem)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 390, in 
traverseWidgetTree
    handler(self, child)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 285, in 
createLayout
    self.traverseWidgetTree(elem)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 390, in 
traverseWidgetTree
    handler(self, child)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 293, in 
handleItem
    self.traverseWidgetTree(elem)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 390, in 
traverseWidgetTree
    handler(self, child)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 153, in 
createWidget
    self.stack.push(self.setupObject(widgetClass(elem), parent, elem))
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 129, in 
setupObject
    self.wprops.setProperties(obj, branch)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/properties.py", line 220, in 
setProperties
    getattr(widget, "set%s%s" % (propname[0].upper(), propname[1:]))(
AttributeError: setindentation


The reason is the following lines in
"/usr/lib/python2.4/site-packages/PyQt4/uic/properties.py" (which in
turn is a symbolic link to:
"/usr/share/pycentral/python-qt4/site-packages/PyQt4/uic/properties.py")

186                  getattr(self, propname)(widget, prop)
187              else:
188                  getattr(widget, "set%s%s" % (propname[0].upper(), 
propname[1:]))(
189                      self.convert(prop, widget))
190

Notice the use of .upper() on line 188. This is what 
causes the crash. When one encounters a propname
whose first letter is 'i' (such as "indentation"),
because of the Turkish locale, that doesn't get
converted into regular English capital 'i'. It instead
gets converted to the Turkish capital 'i' with a dot
on top: Idotabove. Because for some reason python cannot
handle a Turkish capital 'i', software-properties-kde crashes.

I am attaching a patch which corrects the usage of
.upper() in the two instances in the mentioned
file.

Thank you for your attention,

situert




      
____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
--- properties.py.original	2007-09-24 00:00:00.000000000 +0000
+++ properties.py	2007-10-03 00:00:00.000000000 +0000
@@ -185,14 +185,25 @@
             if hasattr(self, propname):
                 getattr(self, propname)(widget, prop)
             else:
-                getattr(widget, "set%s%s" % (propname[0].upper(), propname[1:]))(
+		#print(propname);
+		capital_letter=''
+		if propname[0] is 'i':
+			capital_letter='I';
+		else:
+			capital_letter=propname[0].upper();
+                getattr(widget, "set%s%s" % (capital_letter, propname[1:]))(
                     self.convert(prop, widget))
 
     # delayed properties will be set after the whole widget tree has been populated
     def _delay(self, widget, prop):
         propname = prop.attrib["name"]
+	capital_letter=''
+	if propname[0] is 'i':
+		capital_letter='I';
+	else:
+		capital_letter=propname[0].upper();
         self.delayed_props.append(
-            (getattr(widget, "set%s%s" % (propname[0].upper(), propname[1:])),
+            (getattr(widget, "set%s%s" % (capital_letter, propname[1:])),
                                   self.convert(prop)))
 
     # this properties will be set with a widget.setProperty call rather than

--- End Message ---
--- Begin Message ---
Source: python-qt4
Source-Version: 4.3.1-1

We believe that the bug you reported is fixed in the latest version of
python-qt4, which is due to be installed in the Debian FTP archive:

pyqt4-dev-tools_4.3.1-1_i386.deb
  to pool/main/p/python-qt4/pyqt4-dev-tools_4.3.1-1_i386.deb
python-qt4-common_4.3.1-1_all.deb
  to pool/main/p/python-qt4/python-qt4-common_4.3.1-1_all.deb
python-qt4-dbg_4.3.1-1_i386.deb
  to pool/main/p/python-qt4/python-qt4-dbg_4.3.1-1_i386.deb
python-qt4-dbus-dbg_4.3.1-1_i386.deb
  to pool/main/p/python-qt4/python-qt4-dbus-dbg_4.3.1-1_i386.deb
python-qt4-dbus_4.3.1-1_i386.deb
  to pool/main/p/python-qt4/python-qt4-dbus_4.3.1-1_i386.deb
python-qt4-dev_4.3.1-1_all.deb
  to pool/main/p/python-qt4/python-qt4-dev_4.3.1-1_all.deb
python-qt4-doc_4.3.1-1_all.deb
  to pool/main/p/python-qt4/python-qt4-doc_4.3.1-1_all.deb
python-qt4-gl-dbg_4.3.1-1_i386.deb
  to pool/main/p/python-qt4/python-qt4-gl-dbg_4.3.1-1_i386.deb
python-qt4-gl_4.3.1-1_i386.deb
  to pool/main/p/python-qt4/python-qt4-gl_4.3.1-1_i386.deb
python-qt4-sql-dbg_4.3.1-1_i386.deb
  to pool/main/p/python-qt4/python-qt4-sql-dbg_4.3.1-1_i386.deb
python-qt4-sql_4.3.1-1_i386.deb
  to pool/main/p/python-qt4/python-qt4-sql_4.3.1-1_i386.deb
python-qt4_4.3.1-1.diff.gz
  to pool/main/p/python-qt4/python-qt4_4.3.1-1.diff.gz
python-qt4_4.3.1-1.dsc
  to pool/main/p/python-qt4/python-qt4_4.3.1-1.dsc
python-qt4_4.3.1-1_i386.deb
  to pool/main/p/python-qt4/python-qt4_4.3.1-1_i386.deb
python-qt4_4.3.1.orig.tar.gz
  to pool/main/p/python-qt4/python-qt4_4.3.1.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Torsten Marek <[EMAIL PROTECTED]> (supplier of updated python-qt4 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 22 Oct 2007 18:35:19 +0200
Source: python-qt4
Binary: python-qt4-sql-dbg python-qt4-common python-qt4-dev python-qt4-dbg 
python-qt4-gl-dbg python-qt4-gl pyqt4-dev-tools python-qt4-dbus 
python-qt4-dbus-dbg python-qt4-doc python-qt4 python-qt4-sql
Architecture: source i386 all
Version: 4.3.1-1
Distribution: unstable
Urgency: low
Maintainer: Torsten Marek <[EMAIL PROTECTED]>
Changed-By: Torsten Marek <[EMAIL PROTECTED]>
Description: 
 pyqt4-dev-tools - Development tools for PyQt4
 python-qt4 - Python bindings for Qt4
 python-qt4-common - Shared files for PyQt4
 python-qt4-dbg - Python bindings for Qt4 (debug extensions)
 python-qt4-dbus - DBus Support for PyQt4
 python-qt4-dbus-dbg - DBus Support for PyQt4 (debug extensions)
 python-qt4-dev - Development files for PyQt4
 python-qt4-doc - Documentation and examples for PyQt4
 python-qt4-gl - Python bindings for Qt4's OpenGL module
 python-qt4-gl-dbg - Python bindings for Qt4's OpenGL module (debug extension)
 python-qt4-sql - Python bindings for Qt4's SQL module
 python-qt4-sql-dbg - Python bindings for Qt4's SQL module (debug extension)
Closes: 445337
Changes: 
 python-qt4 (4.3.1-1) unstable; urgency=low
 .
   [ Piotr Ożarowski ]
   * Vcs-Svn, Vcs-Browser and Homepage fields added
 .
   [ Torsten Marek ]
   * New upstream release. (Closes: #445337)
   * Added python-qt4-dbus-dbg package.
Files: 
 61a056826fc91fa47a88d9ae2acddabe 1311 python optional python-qt4_4.3.1-1.dsc
 5d0095d7f08a973b4a04e09e7f6ab568 6176590 python optional 
python-qt4_4.3.1.orig.tar.gz
 decabe4db36487430280d046723dea99 12992 python optional 
python-qt4_4.3.1-1.diff.gz
 7c4ba78dbeae7d42bd90bed22ced9d69 4404098 python optional 
python-qt4_4.3.1-1_i386.deb
 6a7b580695457606fef14d0e92729b70 35583500 python extra 
python-qt4-dbg_4.3.1-1_i386.deb
 751e20628ef4a128cacefec792c655c8 59340 python optional 
python-qt4-dbus_4.3.1-1_i386.deb
 dd45f95e5b58c256ac50bc2e854c8d95 176568 python optional 
python-qt4-dbus-dbg_4.3.1-1_i386.deb
 740fc4109dd6d3141c528fe99c070d44 130270 python optional 
python-qt4-gl_4.3.1-1_i386.deb
 13a8982058dc5117f37f042ad69f79f7 1111380 python extra 
python-qt4-gl-dbg_4.3.1-1_i386.deb
 b91fae564c42e169ba6728dc78ab2fb2 205820 python optional 
python-qt4-sql_4.3.1-1_i386.deb
 cf5130e94e49eae57d0f1c962535e9b8 2210286 python extra 
python-qt4-sql-dbg_4.3.1-1_i386.deb
 0987cb6ba989ce2332d8bd34fac5c306 141998 python optional 
pyqt4-dev-tools_4.3.1-1_i386.deb
 020dcca14a1a3f28d0aa24a331c04a51 273634 python optional 
python-qt4-dev_4.3.1-1_all.deb
 5496ba288e3338e3349ba645b3430809 52132 python optional 
python-qt4-common_4.3.1-1_all.deb
 0f1e2b73a4c31bfc0d6d7fe298b2fbf3 5783380 doc optional 
python-qt4-doc_4.3.1-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHHPcOfMVFHqJEyFgRAqE7AJ9FjYPHQSOOIKcniVCeRy5j+adEIgCdHCBE
RFbeoJzZxLFyjprhgrBrSFo=
=ODF4
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to