On Tue, Jul 03, 2007 at 09:24:48PM +0300, Stoyan Angelov wrote:
> hello all,
>
> i am having problems making Pootle running on my solaris 10 x86 box. i
> tried both Pootle 1.0.1 and the new 1.0.2rc but i experience the same
> problem, that is - whenever i try to open the main page i get:
>
> 2007-07-03 21:01:50: Traceback (most recent call last):
> File "/opt/csw/lib/python2.3/site-packages/Pootle/users.py", line
> 235, in handle
> page = self.getpage(pathwords, session, argdict)
> File "/opt/csw/lib/python2.3/site-packages/Pootle/pootle.py", line
> 288, in getpage
> return indexpage.PootleIndex(self.potree, session)
> File "/opt/csw/lib/python2.3/site-packages/Pootle/indexpage.py", line
> 102, in __init__
> languages.sort(cmp=locale.strcoll, key=lambda dict: dict["name"])
> TypeError: sort() takes no keyword arguments
The keyword arguments were introduced in Python 2.4's sort. The easiest
fix would be to update your python version.
If you cannot do that, you can change that line in indexpage.py by:
languages.sort(lambda x,y: locale.strcoll(x["name"], y["name"]))
Maybe this could also be used in vanilla pootle since it is compatible
with both python2.3 and python2.4.
Note that there may also be other issues with python2.3.
Kind Regards,
--
Nekral
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle