Debian SID + Nicotine = python hiba

Fórumok

Hi!

Újonnan frissített SIDre telepítettem Nicotine-t (szintén a repoból), python2.4 és python-gtk2 fennvan, indításkor mégis ezt kapom:

Traceback (most recent call last):
  File "/usr/bin/nicotine", line 149, in ?
    result = checkenv()
  File "/usr/bin/nicotine", line 96, in checkenv
    print _("""Nicotine supports a country code blocker but that
  File "/usr/lib/python2.4/gettext.py", line 553, in gettext
    return dgettext(_current_domain, message)
  File "/usr/lib/python2.4/gettext.py", line 517, in dgettext
    codeset=_localecodesets.get(domain))
  File "/usr/lib/python2.4/gettext.py", line 465, in translation
    t = _translations.setdefault(key, class_(open(mofile, 'rb')))
  File "/usr/lib/python2.4/gettext.py", line 177, in __init__
    self._parse(fp)
  File "/usr/lib/python2.4/gettext.py", line 301, in _parse
    plural = v[1].split('plural=')[1]
IndexError: list index out of range

Psycoval és psyco nélkül is ugyanez.
Fogalmam sincs mi a gondja, minden függősége fennvan, mit rontottam el?

Hozzászólások

Alapvetően az a baja, amit kiír: a gettext.py 301-edik sorában a v[1]-nek nincs 2 eleme.

Meg kéne nézni a /usr/bin/nicotine 96-100. sorát, a _() gettext fvt. pontosan hogy hívja fel.
Amúgy színtiszta bug, valószínűlega nicotine-ban.
(az micsoda amúgy???)

A nicotine egy pythonban írt soulseek kliens.
Probléma áthidalva:

$ LANGUAGE="" LANG="" LC_ALL="" nicotine

Nekem is hasonló problémám lenne, sanos nem igazán találtam a megoldást.
Ubuntu Feisty, Nicotine+ 1.2.8 (http://www.nicotine-plus.org/)
Sajnos nem vagyok otthon ezen a területen, nagyon megköszönöm ha valaki tud segíteni!

íme a hibaüzenet:

/opt/nicotine/bin$ ./nicotine
Traceback (most recent call last):
  File "./nicotine", line 152, in <module>
    result = checkenv()
  File "./nicotine", line 39, in checkenv
    binary package and what you try to run Nicotine with.)""")
  File "/usr/lib/python2.5/gettext.py", line 581, in gettext
    return dgettext(_current_domain, message)
  File "/usr/lib/python2.5/gettext.py", line 545, in dgettext
    codeset=_localecodesets.get(domain))
  File "/usr/lib/python2.5/gettext.py", line 493, in translation
    t = _translations.setdefault(key, class_(open(mofile, 'rb')))
  File "/usr/lib/python2.5/gettext.py", line 180, in __init__
    self._parse(fp)
  File "/usr/lib/python2.5/gettext.py", line 314, in _parse
    plural = v[1].split('plural=')[1]
IndexError: list index out of range

Hibás a magyar .po fájlban ez a sor:
"Plural-Forms: k\n"
Kiszeded, csinálsz új .mo fájlt:
cd languages
python msgfmtall.py
Bemásolod a helyére, örülsz. :)

Hi!

Ugyanez a problémám. Nem tudnátok részletesebben leírni, mit tegyek?
Az első LANGUAGE... sort hova írjam?

A második javaslatnál pedig nem találom a magyar .mo fájlt.

thx