You are not logged in.
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
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
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
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