[Moin-user] 1.5.8 -> 1.6.0 "TypeError: sort() takes no keyword arguments"

Thomas Waldmann tw-public at gmx.de
Thu Jan 24 04:55:23 EST 2008

> I am  trying to upgrade from 1.5.8 to 1.6.0 and I get the following 
> traceback when running the migration script:
> $ python2.3 /usr/local/moin-1.6.0/bin/moin 
> --config=/var/www/wikinew/config migration data
> Calling migration script for data, base revision 1050800
> Traceback (most recent call last):
> "/usr/local/moin-1.6.0/lib/python2.3/site-packages/MoinMoin/script/migrat
> ion/_conv160.py", line 474, in save_list
>     what_sorted.sort(cmp=lambda x, y: cmp(x[1:], y[1:]))
> TypeError: sort() takes no keyword arguments

I am sorry about that bug, I used a feature of python 2.4 there, but
moin should be compatible to python 2.3.

This is what you can do right now:
a) change line 474 to read #what_sorted.... (that disables the sorting
of the rename map, it will be slightly harder to read, but often this is
no problem)
b) apply this patch http://hg.moinmo.in/moin/1.6/rev/9ed9176ac6dc
c) run the migration on a machine with python 2.4 or 2.5

The fix will also be included in 1.6.1 (expected in next few weeks).

More information about the Moin-user mailing list