You are not logged in.

#1 2011-03-03 18:54:43

eisu
Member
Registered: 2007-11-14
Posts: 11

Sonata 1.6.2.1-3 [solved]

Yesterday I upgraded my System and installed the latest version of Sonata.

When I wanted to start it I got the following traceback:

Traceback (most recent call last):
  File "/usr/bin/sonata", line 78, in <module>
    from sonata import misc
  File "/usr/lib/python2.7/site-packages/sonata/misc.py", line 227
    turkish = ('tr_TR',)

I checked the File and found that there are some variable and indentation errors:
here is the diff of "/usr/lib/python2.7/site-packages/sonata/misc.py", after the modifications sonata works again:

227,230c227,230
<         turkish = ('tr_TR',)
<         locale, encoding = locale.getlocale()
<         if locale in turkish:
<             locale.setlocale(locale.LC_CTYPE, "C")
---
>         turkish = ('tr_TR',)
>         localet, encoding = locale.getlocale()
>         if localet in turkish:
>             locale.setlocale(locale.LC_CTYPE, "C")

I changed "locale, encoding" to "localet, encoding" because you would get a "variable referenced before assignment" error.


maybe this helps someone.


EDIT:

further info:
In the files where spaces instead of tabs (diff). which was the culprit.

Last edited by eisu (2011-03-03 19:24:44)

Offline

#2 2011-03-03 19:09:35

wankel
Member
From: Iowa, USA
Registered: 2008-05-30
Posts: 218
Website

Re: Sonata 1.6.2.1-3 [solved]

I had the same problem, but since then sonata 1.6.2.1-4 and 1.6.2.1-5 were released that fixed this issue.

Last edited by wankel (2011-03-03 19:09:50)

Offline

#3 2011-03-03 19:12:54

eisu
Member
Registered: 2007-11-14
Posts: 11

Re: Sonata 1.6.2.1-3 [solved]

Ah,

I haven't checked for updates today.
Wanted to post this yesterday but lost my internet connection.

thanks wankel.

Last edited by eisu (2011-03-03 19:13:27)

Offline

#4 2011-03-03 22:56:35

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Sonata 1.6.2.1-3 [solved]

Haha, epic!


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

Board footer

Powered by FluxBB