Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#21791 - [pyroom] fails to start
Attached to Project:
Community Packages
Opened by Franck V. (franck_v) - Monday, 22 November 2010, 21:56 GMT
Last edited by Thomas Dziedzic (tomd123) - Friday, 10 December 2010, 04:35 GMT
Opened by Franck V. (franck_v) - Monday, 22 November 2010, 21:56 GMT
Last edited by Thomas Dziedzic (tomd123) - Friday, 10 December 2010, 04:35 GMT
|
DetailsDescription:
I get the following error when starting pyroom: $ pyroom Traceback (most recent call last): File "/usr/bin/pyroom", line 35, in <module> import sys, PyRoom.cmdline File "/usr/lib/python2.7/site-packages/PyRoom/__init__.py", line 34, in <module> fallback=True) File "/usr/lib/python2.7/gettext.py", line 465, in translation mofiles = find(domain, localedir, languages, all=1) File "/usr/lib/python2.7/gettext.py", line 437, in find for nelang in _expand_lang(lang): File "/usr/lib/python2.7/gettext.py", line 132, in _expand_lang locale = normalize(locale) File "/usr/lib/python2.7/locale.py", line 351, in normalize fullname = localename.lower() AttributeError: 'list' object has no attribute 'lower' Additional info: pyroom-0.4.1-2 |
This task depends upon
Closed by Thomas Dziedzic (tomd123)
Friday, 10 December 2010, 04:35 GMT
Reason for closing: Fixed
Additional comments about closing: pkgrel 3, used bzr sources so this bug doesn't exist anymore, will revert to normal sources on the next pkgver bump
Friday, 10 December 2010, 04:35 GMT
Reason for closing: Fixed
Additional comments about closing: pkgrel 3, used bzr sources so this bug doesn't exist anymore, will revert to normal sources on the next pkgver bump
The problem seems to be in line 26 of /usr/lib/python2.7/site-packages/PyRoom/__init__.py:
lang_in_env = os.environ.get('LANGUAGE', None)
if lang_in_env:
languages_used.append(lang_in_env.split())
lang_in_env.split() is an array, so languages_used is an array of array which is wrong (should be an array of strings).
https://bugs.launchpad.net/pyroom/+bug/365477
https://bugs.launchpad.net/pyroom/+bug/367990
A possible workaround is to do:
LANGUAGE= pyroom
http://blog.pyroom.org/2010/03/help-wanted-translations-management.html
In the mean time, you could use pyroom-bzr which shouldn't have the problem, or if you want, you could backport the patch.