Activity log for bug #223281

Date Who What changed Old value New value Message
2008-04-27 21:19:51 Zoran Savic bug added bug
2008-04-27 21:19:51 Zoran Savic bug added attachment 'Dependencies.txt' (Dependencies.txt)
2008-04-27 21:19:51 Zoran Savic bug added attachment 'ProcMaps.txt' (ProcMaps.txt)
2008-04-27 21:19:51 Zoran Savic bug added attachment 'ProcStatus.txt' (ProcStatus.txt)
2008-04-27 21:19:51 Zoran Savic bug added attachment 'Traceback.txt' (Traceback.txt)
2008-05-09 08:00:33 Apport retracing service bug added subscriber Crash bug triagers for universe packages
2008-11-21 13:24:10 Pedro Villavicencio alacarte: status New Incomplete
2008-11-21 13:24:10 Pedro Villavicencio alacarte: assignee desktop-bugs
2008-11-21 13:24:10 Pedro Villavicencio alacarte: importance Undecided Medium
2008-11-21 13:24:10 Pedro Villavicencio alacarte: statusexplanation thanks for the report, is this still an issue with intrepid?
2008-12-09 05:33:45 Pedro Villavicencio alacarte: status Incomplete Invalid
2008-12-09 05:33:45 Pedro Villavicencio alacarte: statusexplanation thanks for the report, is this still an issue with intrepid?
2009-03-31 14:41:25 Nicksha alacarte: status Invalid New
2009-03-31 14:41:25 Nicksha alacarte: statusexplanation The bug has reappeared in Jaunty beta. Alacarte worked in Intrepid.
2009-09-20 11:36:24 Nicksha bug watch added http://bugs.python.org/issue6895
2009-11-08 00:00:54 Petar Vasić summary alacarte crashed with ValueError in _parse_localename() locale._parse_localename fails when localename does not contain encoding information (was: alacarte crashed with ValueError in _parse_localename() )
2009-11-08 00:03:42 Petar Vasić affects alacarte (Ubuntu) python2.6 (Ubuntu)
2009-11-08 00:03:42 Petar Vasić python2.6 (Ubuntu): status New Confirmed
2009-11-08 07:30:26 Jonathan Marsden python2.6 (Ubuntu): status Confirmed In Progress
2009-11-08 09:58:41 Jonathan Marsden attachment added Initial attempt at Jaunty debdiff for python2.6 http://launchpadlibrarian.net/35357579/python2.6_2.6.2-0ubuntu2%7Eppa2.debdiff
2009-11-09 02:35:50 Jonathan Marsden attachment added debdiff for Karmic version http://launchpadlibrarian.net/35395053/python2.6_2.6.4-0ubuntu2.debdiff
2009-11-10 15:32:49 David Planella bug task added ubuntu-translations
2009-11-11 07:49:00 Adi Roiban ubuntu-translations: status New In Progress
2009-11-11 07:49:02 Adi Roiban ubuntu-translations: importance Undecided Medium
2009-11-11 07:50:28 Adi Roiban tags apport-crash apport-crash locale
2009-11-12 21:14:40 Nicksha removed subscriber Nicksha
2009-11-14 06:20:28 Jovica Lesevic nominated for series Ubuntu Karmic
2009-11-26 09:30:35 Jonathan Marsden attachment added debdiff for Lucid version of python2.6 http://launchpadlibrarian.net/36106160/python2.6_2.6.4-1ubuntu2.debdiff
2009-11-26 09:31:14 Jonathan Marsden python2.6 (Ubuntu): status In Progress Confirmed
2009-11-26 09:31:33 Jonathan Marsden ubuntu-translations: status In Progress Confirmed
2009-11-30 04:43:31 Jonathan Marsden python2.6 (Ubuntu): assignee Ubuntu Desktop Bugs (desktop-bugs)
2009-11-30 05:12:04 Jonathan Marsden description Binary package hint: alacarte "Main Menu" worked with first ubuntu 8.04 installation. After serbian language pack installed program did not working any more and in the terminal generate errors such like this: user@computer:~$ alacarte Traceback (most recent call last): File "/usr/bin/alacarte", line 36, in <module> main() File "/usr/bin/alacarte", line 32, in main app = MainWindow(datadir, version, sys.argv) File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__ self.editor = MenuEditor() File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 35, in __init__ self.locale = locale.getdefaultlocale()[0] File "/usr/lib/python2.5/locale.py", line 443, in getdefaultlocale return _parse_localename(localename) File "/usr/lib/python2.5/locale.py", line 375, in _parse_localename raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: sr_ME Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 78, in apport_excepthook report_file = open(pr_filename, 'wt') IOError: [Errno 13] Permission denied: '/var/crash/_usr_bin_alacarte.1000.crash' Original exception was: Traceback (most recent call last): File "/usr/bin/alacarte", line 36, in <module> main() File "/usr/bin/alacarte", line 32, in main app = MainWindow(datadir, version, sys.argv) File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__ self.editor = MenuEditor() File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 35, in __init__ self.locale = locale.getdefaultlocale()[0] File "/usr/lib/python2.5/locale.py", line 443, in getdefaultlocale return _parse_localename(localename) File "/usr/lib/python2.5/locale.py", line 375, in _parse_localename raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: sr_ME ProblemType: Crash Architecture: i386 Date: Sun Apr 27 23:08:17 2008 DistroRelease: Ubuntu 8.04 ExecutablePath: /usr/bin/alacarte InterpreterPath: /usr/bin/python2.5 Package: alacarte 0.11.5-0ubuntu1 PackageArchitecture: all ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte ProcEnviron: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin LANG=sr_ME SHELL=/bin/bash PythonArgs: ['/usr/bin/alacarte'] SourcePackage: alacarte Title: alacarte crashed with ValueError in _parse_localename() Uname: Linux 2.6.24-16-generic i686 UserGroups: Binary package hint: alacarte "Main Menu" worked with first ubuntu 8.04 installation. After serbian language pack installed program did not working any more and in the terminal generate errors such like this: user@computer:~$ alacarte Traceback (most recent call last):   File "/usr/bin/alacarte", line 36, in <module>     main()   File "/usr/bin/alacarte", line 32, in main     app = MainWindow(datadir, version, sys.argv)   File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__     self.editor = MenuEditor()   File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 35, in __init__     self.locale = locale.getdefaultlocale()[0]   File "/usr/lib/python2.5/locale.py", line 443, in getdefaultlocale     return _parse_localename(localename)   File "/usr/lib/python2.5/locale.py", line 375, in _parse_localename     raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: sr_ME Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 78, in apport_excepthook     report_file = open(pr_filename, 'wt') IOError: [Errno 13] Permission denied: '/var/crash/_usr_bin_alacarte.1000.crash' Original exception was: Traceback (most recent call last):   File "/usr/bin/alacarte", line 36, in <module>     main()   File "/usr/bin/alacarte", line 32, in main     app = MainWindow(datadir, version, sys.argv)   File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__     self.editor = MenuEditor()   File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 35, in __init__     self.locale = locale.getdefaultlocale()[0]   File "/usr/lib/python2.5/locale.py", line 443, in getdefaultlocale     return _parse_localename(localename)   File "/usr/lib/python2.5/locale.py", line 375, in _parse_localename     raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: sr_ME ProblemType: Crash Architecture: i386 Date: Sun Apr 27 23:08:17 2008 DistroRelease: Ubuntu 8.04 ExecutablePath: /usr/bin/alacarte InterpreterPath: /usr/bin/python2.5 Package: alacarte 0.11.5-0ubuntu1 PackageArchitecture: all ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte ProcEnviron:  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin  LANG=sr_ME  SHELL=/bin/bash PythonArgs: ['/usr/bin/alacarte'] SourcePackage: alacarte Title: alacarte crashed with ValueError in _parse_localename() Uname: Linux 2.6.24-16-generic i686 UserGroups: ------------------- INFORMATION FOR SRU CONSIDERATION FOLLOWS: 1. A statement explaining the impact of the bug on users and justification for backporting the fix to the stable release: This bug prevents users in some locales (notable Serbia and Antigua, sr_ME and en_AG) from running locale-aware Python software in Ubuntu, including alacarte and software-center. The latter is particularly problematic, as it is likely to affect many novice users. The proposed fix is small, clear, in the upstream bugtracker already, and is isolated to one file, and has been used with success by users of Ubuntu Karmic in both the mentioned locales from a PPA. This appears to qualify as a bug ... "which represents a severe regression from the previous release of Ubuntu. This includes packages which are totally unusable, like being uninstallable or crashing on startup." It could perhaps be argued that these locales did not exist in earlier versions so this is not technically a regression? 2. An explanation of how the bug has been addressed in the development branch, including the relevant version numbers of packages modified in order to implement the fix. An attached debdiff for Ubuntu Lucid is attached to this bug report. It awaits sponsorship. 3. A minimal patch applicable to the stable version of the package. See attached debdiffs. The original patch is at http://bugs.python.org/file14881/locale.py-parselocale-patch.diff 4. Detailed instructions how to reproduce the bug. TEST CASE: 4.1 Install Ubuntu 9.10 Karmic Desktop (i386 and amd64 have both been tested). 4.2 At the GDM login screen, set the locale to English/Antigua and log in (start a session) in that locale. 4.3 Click on Applications -> Ubuntu Software Center 4.4 To see the Python traceback, open a Terminal window and run software-center from it. 4.5 If desired, obtain the patched python2.6 package(s) from the PPA at https://launchpad.net/~jmarsden/+archive/ppa/ and repeat the tests. software-center will now run and operate correctly. 5. A discussion of the regression potential of the patch and how users could get inadvertently affected. Not every Python app has been tested with this patch, nor has itt been tested with every possible supported locale setting! So, by definition, there is a non-zero regression potential. Nevertheless, the patch is so small, and can be reviewed by anyone who reads Python for correctness. It affects just one function, and then only in locales without a period in them (there are few such locales). On that basis, it is hard to see how it can really introduce a regression in practice. This issue has been around for several versions of Ubuntu, so the current behaviour with the patch in place (for locale-aware Python applications at least) is an obvious improvement over earlier behaviour -- the applications actually run. So far, no Python apps have been found which this patch affects negatively. The patch has been tested in several commonly used locales, including en_US.UTF-8, de_DE.utf8, es_ES.utf8 and fr_FR.utf8, as well as the affected locales sr_ME and en_AG. -------------------
2009-11-30 07:13:27 Jonathan Marsden description Binary package hint: alacarte "Main Menu" worked with first ubuntu 8.04 installation. After serbian language pack installed program did not working any more and in the terminal generate errors such like this: user@computer:~$ alacarte Traceback (most recent call last):   File "/usr/bin/alacarte", line 36, in <module>     main()   File "/usr/bin/alacarte", line 32, in main     app = MainWindow(datadir, version, sys.argv)   File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__     self.editor = MenuEditor()   File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 35, in __init__     self.locale = locale.getdefaultlocale()[0]   File "/usr/lib/python2.5/locale.py", line 443, in getdefaultlocale     return _parse_localename(localename)   File "/usr/lib/python2.5/locale.py", line 375, in _parse_localename     raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: sr_ME Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 78, in apport_excepthook     report_file = open(pr_filename, 'wt') IOError: [Errno 13] Permission denied: '/var/crash/_usr_bin_alacarte.1000.crash' Original exception was: Traceback (most recent call last):   File "/usr/bin/alacarte", line 36, in <module>     main()   File "/usr/bin/alacarte", line 32, in main     app = MainWindow(datadir, version, sys.argv)   File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__     self.editor = MenuEditor()   File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 35, in __init__     self.locale = locale.getdefaultlocale()[0]   File "/usr/lib/python2.5/locale.py", line 443, in getdefaultlocale     return _parse_localename(localename)   File "/usr/lib/python2.5/locale.py", line 375, in _parse_localename     raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: sr_ME ProblemType: Crash Architecture: i386 Date: Sun Apr 27 23:08:17 2008 DistroRelease: Ubuntu 8.04 ExecutablePath: /usr/bin/alacarte InterpreterPath: /usr/bin/python2.5 Package: alacarte 0.11.5-0ubuntu1 PackageArchitecture: all ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte ProcEnviron:  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin  LANG=sr_ME  SHELL=/bin/bash PythonArgs: ['/usr/bin/alacarte'] SourcePackage: alacarte Title: alacarte crashed with ValueError in _parse_localename() Uname: Linux 2.6.24-16-generic i686 UserGroups: ------------------- INFORMATION FOR SRU CONSIDERATION FOLLOWS: 1. A statement explaining the impact of the bug on users and justification for backporting the fix to the stable release: This bug prevents users in some locales (notable Serbia and Antigua, sr_ME and en_AG) from running locale-aware Python software in Ubuntu, including alacarte and software-center. The latter is particularly problematic, as it is likely to affect many novice users. The proposed fix is small, clear, in the upstream bugtracker already, and is isolated to one file, and has been used with success by users of Ubuntu Karmic in both the mentioned locales from a PPA. This appears to qualify as a bug ... "which represents a severe regression from the previous release of Ubuntu. This includes packages which are totally unusable, like being uninstallable or crashing on startup." It could perhaps be argued that these locales did not exist in earlier versions so this is not technically a regression? 2. An explanation of how the bug has been addressed in the development branch, including the relevant version numbers of packages modified in order to implement the fix. An attached debdiff for Ubuntu Lucid is attached to this bug report. It awaits sponsorship. 3. A minimal patch applicable to the stable version of the package. See attached debdiffs. The original patch is at http://bugs.python.org/file14881/locale.py-parselocale-patch.diff 4. Detailed instructions how to reproduce the bug. TEST CASE: 4.1 Install Ubuntu 9.10 Karmic Desktop (i386 and amd64 have both been tested). 4.2 At the GDM login screen, set the locale to English/Antigua and log in (start a session) in that locale. 4.3 Click on Applications -> Ubuntu Software Center 4.4 To see the Python traceback, open a Terminal window and run software-center from it. 4.5 If desired, obtain the patched python2.6 package(s) from the PPA at https://launchpad.net/~jmarsden/+archive/ppa/ and repeat the tests. software-center will now run and operate correctly. 5. A discussion of the regression potential of the patch and how users could get inadvertently affected. Not every Python app has been tested with this patch, nor has itt been tested with every possible supported locale setting! So, by definition, there is a non-zero regression potential. Nevertheless, the patch is so small, and can be reviewed by anyone who reads Python for correctness. It affects just one function, and then only in locales without a period in them (there are few such locales). On that basis, it is hard to see how it can really introduce a regression in practice. This issue has been around for several versions of Ubuntu, so the current behaviour with the patch in place (for locale-aware Python applications at least) is an obvious improvement over earlier behaviour -- the applications actually run. So far, no Python apps have been found which this patch affects negatively. The patch has been tested in several commonly used locales, including en_US.UTF-8, de_DE.utf8, es_ES.utf8 and fr_FR.utf8, as well as the affected locales sr_ME and en_AG. ------------------- Binary package hint: alacarte "Main Menu" worked with first ubuntu 8.04 installation. After serbian language pack installed program did not working any more and in the terminal generate errors such like this: user@computer:~$ alacarte Traceback (most recent call last):   File "/usr/bin/alacarte", line 36, in <module>     main()   File "/usr/bin/alacarte", line 32, in main     app = MainWindow(datadir, version, sys.argv)   File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__     self.editor = MenuEditor()   File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 35, in __init__     self.locale = locale.getdefaultlocale()[0]   File "/usr/lib/python2.5/locale.py", line 443, in getdefaultlocale     return _parse_localename(localename)   File "/usr/lib/python2.5/locale.py", line 375, in _parse_localename     raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: sr_ME Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 78, in apport_excepthook     report_file = open(pr_filename, 'wt') IOError: [Errno 13] Permission denied: '/var/crash/_usr_bin_alacarte.1000.crash' Original exception was: Traceback (most recent call last):   File "/usr/bin/alacarte", line 36, in <module>     main()   File "/usr/bin/alacarte", line 32, in main     app = MainWindow(datadir, version, sys.argv)   File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__     self.editor = MenuEditor()   File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 35, in __init__     self.locale = locale.getdefaultlocale()[0]   File "/usr/lib/python2.5/locale.py", line 443, in getdefaultlocale     return _parse_localename(localename)   File "/usr/lib/python2.5/locale.py", line 375, in _parse_localename     raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: sr_ME ProblemType: Crash Architecture: i386 Date: Sun Apr 27 23:08:17 2008 DistroRelease: Ubuntu 8.04 ExecutablePath: /usr/bin/alacarte InterpreterPath: /usr/bin/python2.5 Package: alacarte 0.11.5-0ubuntu1 PackageArchitecture: all ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte ProcEnviron:  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin  LANG=sr_ME  SHELL=/bin/bash PythonArgs: ['/usr/bin/alacarte'] SourcePackage: alacarte Title: alacarte crashed with ValueError in _parse_localename() Uname: Linux 2.6.24-16-generic i686 UserGroups: ------------------- INFORMATION FOR SRU CONSIDERATION FOLLOWS: 1. A statement explaining the impact of the bug on users and justification for backporting the fix to the stable release: This bug prevents users in some locales (notable Serbia and Antigua, sr_ME and en_AG) from running locale-aware Python software in Ubuntu, including alacarte and software-center. The latter is particularly problematic, as it is likely to affect many novice users. The proposed fix is small, clear, in the upstream bugtracker already, and is isolated to one function in one file, and has been used with success by users of Ubuntu Karmic in both the mentioned locales from a PPA. This appears to qualify as a bug ... "which represents a severe regression from the previous release of Ubuntu. This includes packages which are totally unusable, like being uninstallable or crashing on startup." It could perhaps be argued that these locales did not exist in earlier versions so this is not technically a regression? 2. An explanation of how the bug has been addressed in the development branch, including the relevant version numbers of packages modified in order to implement the fix. An attached debdiff for Ubuntu Lucid is attached to this bug report. It awaits sponsorship. 3. A minimal patch applicable to the stable version of the package. See attached debdiffs. The original patch is at http://bugs.python.org/file14881/locale.py-parselocale-patch.diff 4. Detailed instructions how to reproduce the bug. TEST CASE: 4.1 Install Ubuntu 9.10 Karmic Desktop (i386 and amd64 have both been tested). 4.2 At the GDM login screen, set the locale to English/Antigua and log in (start a session) in that locale. 4.3 Click on Applications -> Ubuntu Software Center 4.4 To see the Python traceback, open a Terminal window and run software-center from it. 4.5 If desired, obtain the patched python2.6 package(s) from the PPA at https://launchpad.net/~jmarsden/+archive/ppa/ and repeat the tests. software-center will now run and operate correctly. 5. A discussion of the regression potential of the patch and how users could get inadvertently affected. Not every Python app has been tested with this patch, nor has it been tested with every possible supported locale setting! So, by definition, there is a non-zero regression potential. Nevertheless, the patch is so small, and can be reviewed by anyone who reads Python for correctness. It affects just one function, and then only in locales without a period in them (there are few such locales). On that basis, it is hard to see how it can really introduce a regression in practice. This issue has been around for several versions of Ubuntu, so the current behaviour with the patch in place (for locale-aware Python applications at least) is an obvious improvement over earlier behaviour -- the applications actually run. So far, no Python apps have been found which this patch affects negatively. The patch has been tested in several commonly used locales, including en_US.UTF-8, de_DE.utf8, es_ES.utf8 and fr_FR.utf8, as well as the affected locales sr_ME and en_AG. -------------------
2009-11-30 14:03:27 David Planella bug added subscriber Ubuntu Stable Release Updates Team
2009-12-02 08:18:58 Michael Vogt bug task added python
2009-12-02 19:25:31 Bug Watch Updater python: status Unknown New
2009-12-03 20:27:15 Jonathan Marsden description Binary package hint: alacarte "Main Menu" worked with first ubuntu 8.04 installation. After serbian language pack installed program did not working any more and in the terminal generate errors such like this: user@computer:~$ alacarte Traceback (most recent call last):   File "/usr/bin/alacarte", line 36, in <module>     main()   File "/usr/bin/alacarte", line 32, in main     app = MainWindow(datadir, version, sys.argv)   File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__     self.editor = MenuEditor()   File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 35, in __init__     self.locale = locale.getdefaultlocale()[0]   File "/usr/lib/python2.5/locale.py", line 443, in getdefaultlocale     return _parse_localename(localename)   File "/usr/lib/python2.5/locale.py", line 375, in _parse_localename     raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: sr_ME Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 78, in apport_excepthook     report_file = open(pr_filename, 'wt') IOError: [Errno 13] Permission denied: '/var/crash/_usr_bin_alacarte.1000.crash' Original exception was: Traceback (most recent call last):   File "/usr/bin/alacarte", line 36, in <module>     main()   File "/usr/bin/alacarte", line 32, in main     app = MainWindow(datadir, version, sys.argv)   File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__     self.editor = MenuEditor()   File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 35, in __init__     self.locale = locale.getdefaultlocale()[0]   File "/usr/lib/python2.5/locale.py", line 443, in getdefaultlocale     return _parse_localename(localename)   File "/usr/lib/python2.5/locale.py", line 375, in _parse_localename     raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: sr_ME ProblemType: Crash Architecture: i386 Date: Sun Apr 27 23:08:17 2008 DistroRelease: Ubuntu 8.04 ExecutablePath: /usr/bin/alacarte InterpreterPath: /usr/bin/python2.5 Package: alacarte 0.11.5-0ubuntu1 PackageArchitecture: all ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte ProcEnviron:  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin  LANG=sr_ME  SHELL=/bin/bash PythonArgs: ['/usr/bin/alacarte'] SourcePackage: alacarte Title: alacarte crashed with ValueError in _parse_localename() Uname: Linux 2.6.24-16-generic i686 UserGroups: ------------------- INFORMATION FOR SRU CONSIDERATION FOLLOWS: 1. A statement explaining the impact of the bug on users and justification for backporting the fix to the stable release: This bug prevents users in some locales (notable Serbia and Antigua, sr_ME and en_AG) from running locale-aware Python software in Ubuntu, including alacarte and software-center. The latter is particularly problematic, as it is likely to affect many novice users. The proposed fix is small, clear, in the upstream bugtracker already, and is isolated to one function in one file, and has been used with success by users of Ubuntu Karmic in both the mentioned locales from a PPA. This appears to qualify as a bug ... "which represents a severe regression from the previous release of Ubuntu. This includes packages which are totally unusable, like being uninstallable or crashing on startup." It could perhaps be argued that these locales did not exist in earlier versions so this is not technically a regression? 2. An explanation of how the bug has been addressed in the development branch, including the relevant version numbers of packages modified in order to implement the fix. An attached debdiff for Ubuntu Lucid is attached to this bug report. It awaits sponsorship. 3. A minimal patch applicable to the stable version of the package. See attached debdiffs. The original patch is at http://bugs.python.org/file14881/locale.py-parselocale-patch.diff 4. Detailed instructions how to reproduce the bug. TEST CASE: 4.1 Install Ubuntu 9.10 Karmic Desktop (i386 and amd64 have both been tested). 4.2 At the GDM login screen, set the locale to English/Antigua and log in (start a session) in that locale. 4.3 Click on Applications -> Ubuntu Software Center 4.4 To see the Python traceback, open a Terminal window and run software-center from it. 4.5 If desired, obtain the patched python2.6 package(s) from the PPA at https://launchpad.net/~jmarsden/+archive/ppa/ and repeat the tests. software-center will now run and operate correctly. 5. A discussion of the regression potential of the patch and how users could get inadvertently affected. Not every Python app has been tested with this patch, nor has it been tested with every possible supported locale setting! So, by definition, there is a non-zero regression potential. Nevertheless, the patch is so small, and can be reviewed by anyone who reads Python for correctness. It affects just one function, and then only in locales without a period in them (there are few such locales). On that basis, it is hard to see how it can really introduce a regression in practice. This issue has been around for several versions of Ubuntu, so the current behaviour with the patch in place (for locale-aware Python applications at least) is an obvious improvement over earlier behaviour -- the applications actually run. So far, no Python apps have been found which this patch affects negatively. The patch has been tested in several commonly used locales, including en_US.UTF-8, de_DE.utf8, es_ES.utf8 and fr_FR.utf8, as well as the affected locales sr_ME and en_AG. ------------------- Binary package hint: alacarte "Main Menu" worked with first ubuntu 8.04 installation. After serbian language pack installed program did not working any more and in the terminal generate errors such like this: user@computer:~$ alacarte Traceback (most recent call last):   File "/usr/bin/alacarte", line 36, in <module>     main()   File "/usr/bin/alacarte", line 32, in main     app = MainWindow(datadir, version, sys.argv)   File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__     self.editor = MenuEditor()   File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 35, in __init__     self.locale = locale.getdefaultlocale()[0]   File "/usr/lib/python2.5/locale.py", line 443, in getdefaultlocale     return _parse_localename(localename)   File "/usr/lib/python2.5/locale.py", line 375, in _parse_localename     raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: sr_ME Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 78, in apport_excepthook     report_file = open(pr_filename, 'wt') IOError: [Errno 13] Permission denied: '/var/crash/_usr_bin_alacarte.1000.crash' Original exception was: Traceback (most recent call last):   File "/usr/bin/alacarte", line 36, in <module>     main()   File "/usr/bin/alacarte", line 32, in main     app = MainWindow(datadir, version, sys.argv)   File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__     self.editor = MenuEditor()   File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 35, in __init__     self.locale = locale.getdefaultlocale()[0]   File "/usr/lib/python2.5/locale.py", line 443, in getdefaultlocale     return _parse_localename(localename)   File "/usr/lib/python2.5/locale.py", line 375, in _parse_localename     raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: sr_ME ProblemType: Crash Architecture: i386 Date: Sun Apr 27 23:08:17 2008 DistroRelease: Ubuntu 8.04 ExecutablePath: /usr/bin/alacarte InterpreterPath: /usr/bin/python2.5 Package: alacarte 0.11.5-0ubuntu1 PackageArchitecture: all ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte ProcEnviron:  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin  LANG=sr_ME  SHELL=/bin/bash PythonArgs: ['/usr/bin/alacarte'] SourcePackage: alacarte Title: alacarte crashed with ValueError in _parse_localename() Uname: Linux 2.6.24-16-generic i686 UserGroups: ------------------- INFORMATION FOR SRU CONSIDERATION FOLLOWS: 1. A statement explaining the impact of the bug on users and justification for backporting the fix to the stable release: This bug prevents users in some locales (notable Serbia and Antigua, sr_ME and en_AG) from running locale-aware Python software in Ubuntu, including alacarte and software-center. The latter is particularly problematic, as it is likely to affect many novice users. The proposed fix is small, clear, in the upstream bugtracker already, and is isolated to one function in one file, and has been used with success by users of Ubuntu Karmic in both the mentioned locales from a PPA. This appears to qualify as a bug ... "which represents a severe regression from the previous release of Ubuntu. This includes packages which are totally unusable, like being uninstallable or crashing on startup." It could perhaps be argued that these locales did not exist in earlier versions so this is not technically a regression? 2. An explanation of how the bug has been addressed in the development branch, including the relevant version numbers of packages modified in order to implement the fix. An attached debdiff for Ubuntu Lucid is attached to this bug report. It awaits sponsorship. 3. A minimal patch applicable to the stable version of the package. See attached debdiffs. The original patch is at http://bugs.python.org/file14881/locale.py-parselocale-patch.diff 4. Detailed instructions how to reproduce the bug. TEST CASE: 4.1 Install Ubuntu 9.10 Karmic Desktop (i386 and amd64 have both been tested). 4.2 At the GDM login screen, set the locale to English/Antigua and log in (start a session) in that locale. 4.3 Click on Applications -> Ubuntu Software Center 4.4 To see the Python traceback, open a Terminal window and run software-center from it. A smaller test case would be to run LANG=en_AG python2.6 -c "import locale ; print locale.getdefaultlocale()" and testing all locales in this way can therefore be done by running sudo apt-get install ^language-pack-\* -y # Install all locales for i in $(locale -a) do echo $i LANG=$i python2.6 -c "import locale ; print locale.getdefaultlocale()" || break done 4.5 If desired, obtain the patched python2.6 package(s) from the PPA at https://launchpad.net/~jmarsden/+archive/ppa/ and repeat the tests. software-center will now run and operate correctly. 5. A discussion of the regression potential of the patch and how users could get inadvertently affected. This patch has been tested for every locale in Ubuntu Karmic, see 4.4 above, but not every Python app has been tested with this patch. So, by definition, there is a non-zero regression potential. Nevertheless, the patch is so small, and can be reviewed by anyone who reads Python for correctness. It affects just one function, and then only in locales without a period in them (there are few such locales). On that basis, it is hard to see how it can really introduce a regression in practice. This issue has been around for several versions of Ubuntu, so the current behaviour with the patch in place (for locale-aware Python applications at least) is an obvious improvement over earlier behaviour -- the applications actually run. So far, no Python apps have been found which this patch affects negatively. The patch has been tested in several commonly used locales, including en_US.UTF-8, de_DE.utf8, es_ES.utf8 and fr_FR.utf8, as well as the affected locales sr_ME and en_AG. -------------------
2009-12-07 10:41:06 Martin Pitt bug task added python2.6 (Ubuntu Karmic)
2009-12-07 10:55:15 Martin Pitt python2.6 (Ubuntu): status Confirmed Fix Committed
2009-12-07 12:47:24 Martin Pitt python2.6 (Ubuntu): status Fix Committed Incomplete
2009-12-07 18:21:59 Jonathan Marsden attachment added Fixed debdiff for Lucid http://launchpadlibrarian.net/36541698/python2.6_2.6.4-1ubuntu2-fixed.debdiff
2009-12-07 18:22:32 Jonathan Marsden python2.6 (Ubuntu): status Incomplete Confirmed
2009-12-07 18:34:50 Martin Pitt python2.6 (Ubuntu Karmic): status New Fix Committed
2009-12-07 18:35:10 Martin Pitt tags apport-crash locale apport-crash locale verification-needed
2009-12-08 09:40:55 Martin Pitt tags apport-crash locale verification-needed apport-crash locale verification-done
2009-12-08 11:40:08 Launchpad Janitor python2.6 (Ubuntu): status Confirmed Fix Released
2009-12-08 11:53:25 Martin Pitt ubuntu-translations: status Confirmed Fix Committed
2009-12-09 00:07:21 Launchpad Janitor branch linked lp:ubuntu/python2.6
2009-12-09 00:07:33 Launchpad Janitor branch linked lp:ubuntu/karmic-proposed/python2.6
2009-12-15 07:46:40 Martin Pitt ubuntu-translations: status Fix Committed Fix Released
2009-12-15 07:46:40 Launchpad Janitor python2.6 (Ubuntu Karmic): status Fix Committed Fix Released
2010-01-16 10:11:44 Matthias Klose python2.6 (Ubuntu): status Fix Released New
2010-01-22 11:45:22 Launchpad Janitor python2.6 (Ubuntu): status New Fix Released
2010-03-23 18:54:37 Colin Watson removed subscriber Ubuntu Sponsors for main
2010-03-27 15:48:12 Benjamin Drung removed subscriber Ubuntu Sponsors Team
2014-05-15 04:24:12 Bug Watch Updater python: status New Incomplete
2014-07-13 18:26:14 Bug Watch Updater python: status Incomplete New
2014-08-29 23:20:50 Bug Watch Updater python: status New Invalid