You are not logged in.

#1 2007-08-27 10:51:17

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Sonata 1.2.3 breaks (python error)

I just upgraded to Sonata 1.2.3, and it fails to load:

[stijn@hephaistos ~]$ sonata 
Traceback (most recent call last):
  File "/usr/bin/sonata", line 50, in <module>
    app = sonata.Base()
  File "/usr/lib/python2.5/site-packages/sonata.py", line 174, in __init__
    gettext.install('sonata', '/usr/share/locale', unicode=1)
  File "/usr/lib/python2.5/gettext.py", line 493, in install
    t = translation(domain, localedir, fallback=True, codeset=codeset)
  File "/usr/lib/python2.5/gettext.py", line 478, 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 315, in _parse
    self.plural = c2py(plural)
  File "/usr/lib/python2.5/gettext.py", line 93, in c2py
    raise ValueError, 'plural forms expression could be dangerous'
ValueError: plural forms expression could be dangerous

Haven't tried to rebuild yet (since last python upgrade is from July 27th on this box, running current), I was wondering if other people experienced similar behaviour?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#2 2007-08-27 15:37:18

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: Sonata 1.2.3 breaks (python error)

That's some sort of gettext translation error. What locale are you using?

You can probably run sonata successfully for the time being with "LC_ALL=en_US.utf8 sonata" if you have that locale built.

Last edited by stonecrest (2007-08-27 15:38:11)


I am a gated community.

Offline

#3 2007-08-28 13:51:58

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Sonata 1.2.3 breaks (python error)

I am using nl_BE.utf8

[stijn@hephaistos sonata]$ locale | grep LANG
LANG=nl_BE.utf8

I read in the Sonata changelog they had a Dutch translation now, maybe that's why it borks (trying to use Dutch?). I'll see if i can get it to work if i generate the general English locale, although that is of course not my preferred solution tongue.

Edit: it works that way, I do have to specify the locale as you said though. Is there a way to fix it (I suppose the error is within Sonata?). If i can help debugging, let me know smile.

Last edited by B (2007-08-28 13:57:58)


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2007-08-28 15:41:27

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: Sonata 1.2.3 breaks (python error)

The error is actually in the po file. It's probably an easy fix, I'll look at it tonight.


I am a gated community.

Offline

#5 2007-08-28 22:34:06

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Sonata 1.2.3 breaks (python error)

Thanks smile.

Really love Sonata btw wink.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2007-08-29 00:53:02

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: Sonata 1.2.3 breaks (python error)

I don't know if my quick one-line fix was "proper", but that locale seems to work now in svn. And thanks for the kind words smile


I am a gated community.

Offline

#7 2007-08-29 09:13:14

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Sonata 1.2.3 breaks (python error)

Thanks man cool. Sonata SVN works indeed.

Btw... You should put a 'donate' part on your website wink. Can't find it anywhere roll.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB