Exaile breaks with language-pack is missing.

Bug #243845 reported by kahrytan
4
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Undecided
Mathias Brodala
Ubuntu Translations
Fix Released
Undecided
Unassigned
exaile (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

(exaile.py:10514): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.
Traceback (most recent call last):
  File "/usr/lib/exaile/exaile.py", line 81, in <module>
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.5/locale.py", line 478, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Solved: by reinstalling one of the language-packs.

Possible fix, some way to prevent one of language packs from being removed from ubuntu. I was told in #exaile @freenode that it's possible to use meta package that depends on one or more language specific packages.

Related branches

kahrytan (kahrytan)
description: updated
Revision history for this message
Johannes Sasongko (sjohannes) wrote :

Seems like a bug in our (or Ubuntu's) package scripts.

Just curious, does Exaile still run after that message? (It should, but just making sure.)

Revision history for this message
kahrytan (kahrytan) wrote :

Negative. It doesn't run.

Revision history for this message
Johannes Sasongko (sjohannes) wrote :

I've made a change to the code that will let Exaile run even with this error, but the correct fix should probably be in the package dependencies.

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

kahrytan,

Thanks for reporting this bug. I've got a few questions that will hopefully help get this fixed in Ubuntu.

What version of Exaile are you running? Am I correct in assuming version 0.2.11.1-0ubuntu3 on Hardy? If you don't know please post the output of running "apt-cache policy exaile" in a terminal. Also which language-pack did you need to reinstall in order to resolve your issue?

 Johannes,

What package do you suggest be added to the Depends?

For reference, the specific revision with the fix:
http://bazaar.launchpad.net/~exaile-devel/exaile/main/revision/1647

Changed in exaile:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Johannes Sasongko (sjohannes) wrote : Re: [Bug 243845] Re: Exaile breaks with language-pack is missing.

Hi Andrew,

> What package do you suggest be added to the Depends?

Er... not sure really. I assume that ``locale.setlocale(locale.LC_ALL,
'')`` line wouldn't fail if the appropriate language pack is
installed. But isn't the language pack installed by default anyway?
(And isn't it the dependency of lots of other apps?)

Johannes

Revision history for this message
kahrytan (kahrytan) wrote :

Johannes, What if the language pack was removed though? Exaile stayed installed while language pack was removed. Exaile should depend on meta language pack that also depends on with one language pack.

Revision history for this message
kahrytan (kahrytan) wrote :

I have reproduced this bug. And it's easy to do.

Remove the package language-pack-*-base. Replace * with whatever language package that is installed. Mine is english. Now run exaile. This bug will crop up in terminal.

Changed in exaile:
status: Incomplete → Confirmed
Revision history for this message
Adi Roiban (adiroiban) wrote :

I have tested and it was working for me.
This is not a problem with language packs but with exaile.

This problem can be reproduced by running this command:

$ LANG=test exaile
Traceback (most recent call last):
  File "/usr/lib/exaile/exaile.py", line 56, in <module>
    main()
  File "/usr/lib/exaile/exaile.py", line 51, in main
    from xl import main
  File "/usr/lib/exaile/xl/main.py", line 39, in <module>
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.6/locale.py", line 513, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Changed in exaile (Ubuntu):
status: Confirmed → Fix Released
Changed in ubuntu-translations:
status: New → Fix Released
Changed in exaile (Ubuntu):
status: Fix Released → Confirmed
Changed in exaile:
status: New → Confirmed
reacocard (reacocard)
Changed in exaile:
assignee: nobody → Mathias Brodala (mathbr)
Revision history for this message
Mathias Brodala (mathbr) wrote :

Fix committed in trunk with r2661 and 0.3.0.x with r2466.

Changed in exaile:
milestone: none → 0.3.0.3
status: Confirmed → Fix Committed
reacocard (reacocard)
Changed in exaile:
milestone: 0.3.0.3 → 0.3.1
reacocard (reacocard)
Changed in exaile:
status: Fix Committed → Fix Released
Changed in exaile (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.