Community Packages

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!
Tasklist

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
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Thomas Dziedzic (tomd123)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

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
Comment by Thomas Dziedzic (tomd123) - Tuesday, 23 November 2010, 14:52 GMT
very strange. It works for me.
Comment by Thomas Dziedzic (tomd123) - Tuesday, 23 November 2010, 16:39 GMT
can you post your locale?
Comment by Franck V. (franck_v) - Tuesday, 23 November 2010, 20:18 GMT
My locale is fr_FR.utf8.

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).
Comment by Thomas Dziedzic (tomd123) - Tuesday, 23 November 2010, 20:33 GMT Comment by Franck V. (franck_v) - Tuesday, 23 November 2010, 20:33 GMT
There seem to be a bug reported upstream:
https://bugs.launchpad.net/pyroom/+bug/367990

A possible workaround is to do:
LANGUAGE= pyroom
Comment by Thomas Dziedzic (tomd123) - Tuesday, 23 November 2010, 20:39 GMT
strange, upstream seems to be stalling because of needed help with translations on lp.
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.

Loading...