[Moin-user] 1.5.8 -> 1.6.0 "TypeError: sort() takes no keyword arguments"
adh at displaylink.com
Thu Jan 24 13:03:44 EST 2008
In article <1201168523.7758.5.camel at black>,
Thomas Waldmann <tw-public at gmx.de> wrote:
> > 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).
Thanks for that - I read it just after I reinstalled using Python 2.5.1
and re-ran the script (which now works of course)!
DisplayLink (UK) Ltd
More information about the Moin-user