[Moin-user] migration error from 1.2.3 to 1.3.1

Thomas Waldmann tw-public at gmx.de
Mon Jan 10 04:15:43 EST 2005


> BUT when upgrade from 1.2.3 to 1.3.1
> error in step 12_to_13_mig4.py
> brok as:
> """data.pre-mig4/event.log
> Traceback (most recent call last):
>   File "12_to_13_mig4.py", line 149, in ?
>     convert_eventlog(opj(origdir, 'event.log'), opj('data', 'event-log'))
>   File "12_to_13_mig4.py", line 64, in convert_eventlog
>     data[0] = str(convert_ts(float(data[0]))) # we want usecs
> ValueError: empty string for float()
> """
> 
> what happen? and waht can i do ???

Looks like your event.log contains empty lines maybe (or a line with 
empty first field - in the first field, there should be a timestamp, 
followed by a tab as field separator).

Maybe just use an editor (like vim) to correct that problem in the 
event.log.


Alternatively, if you can live with incomplete page read stats, you 
could also simply skip converting event-log, it is only needed for 
stats. For doing that. modify the mig4 script (last few lines) to read 
like that:

#convert_eventlog(opj(origdir, 'event.log'), opj('data', 'event-log'))

After running mig4, create an empty event-log by:

touch data/event-log

Hope that helps.




More information about the Moin-user mailing list