Life In 19x19
http://lifein19x19.com/

Go4go recent delivery import error Kombilo
http://lifein19x19.com/viewtopic.php?f=18&t=17205
Page 1 of 1

Author:  Gomoto [ Wed Jan 15, 2020 9:41 am ]
Post subject:  Go4go recent delivery import error Kombilo

When I try to add the recent go4go delivery of sgf files as database to kombilo, kombilo crashes.

Any pointers?

Author:  Gomoto [ Wed Jan 15, 2020 9:45 am ]
Post subject:  Re: Go4go recent delivery import error Kombilo

It is related to the sgf files. If I copy one of them to a working folder, this folder also breaks kombilo.

Reformating with sabaki does not solve the problem.

I am lost for now.

Author:  Gomoto [ Wed Jan 15, 2020 9:50 am ]
Post subject:  Re: Go4go recent delivery import error Kombilo

The sgf files load manually as single files without problem into kombilo.

Author:  Gomoto [ Wed Jan 15, 2020 9:57 am ]
Post subject:  Re: Go4go recent delivery import error Kombilo

Oh nooooo!

It is a year 2020 problem.

Changing the game year in the date field to a pre 2020 year solves the problem for this sgf file.

I have little hope there will be a new kombilo version without the error. On the other hand the source code is available ...

Author:  macelee [ Wed Jan 15, 2020 10:36 am ]
Post subject:  Re: Go4go recent delivery import error Kombilo

Can you explain this in more detail? I test my sgf package with Kombilo every week I have not experienced problem. Which version of Kombilo are you using?

Author:  Gomoto [ Wed Jan 15, 2020 10:56 am ]
Post subject:  Re: Go4go recent delivery import error Kombilo

I am running Kombilo 0.8.4 on windows 10.

sgf without crash when [add DB] in kombilo is invoked (2020 changed to 2018 for testing purpose):



when I try to [add DB] a folder with this version of the file (only difference 2018 -> 2020) kombilo exits during [add DB] without error message.



Database -> Edit DB list -> Add DB (no crash with 2018, crash with 2020)

Author:  vier [ Wed Jan 15, 2020 1:14 pm ]
Post subject:  Re: Go4go recent delivery import error Kombilo

Gomoto wrote:
Oh nooooo!

It is a year 2020 problem.

Changing the game year in the date field to a pre 2020 year solves the problem for this sgf file.

I have little hope there will be a new kombilo version without the error. On the other hand the source code is available ...


Have you tried changing the line

libkombilo/pattern.h:const int DATE_PROFILE_END = 2020;

?

Author:  Gomoto [ Wed Jan 15, 2020 2:38 pm ]
Post subject:  Re: Go4go recent delivery import error Kombilo

I am sure this is the solution. But I am not able to compile from source in windows 10 (I do not know how to install sqlite3 in such a way sqlite.h is found during the build process of kombilo.) I will have to wait for an updated version of the windows installer.

Author:  xela [ Wed Jan 15, 2020 2:44 pm ]
Post subject:  Re: Go4go recent delivery import error Kombilo

vier wrote:
libkombilo/pattern.h:const int DATE_PROFILE_END = 2020;

Why on earth would a developer put such a line in the code in the first place? Did he think we'd give up on playing go by the end of 2019? (Did the AlphaGo team somehow sneak that line into the Kombilo source? Let the conspiracy theories begin...)

Author:  xela [ Tue Jan 21, 2020 12:34 am ]
Post subject:  Re: Go4go recent delivery import error Kombilo

Interesting, I'm not able to reproduce this issue (using the Linux version of Kombilo 0.8.4). I can add files with dates in 2020, or even 20201, with no problem.

Author:  emerus [ Tue Jan 21, 2020 7:09 am ]
Post subject:  Re: Go4go recent delivery import error Kombilo

I emailed the dev about the 2020 problem umm... three weeks ago or so. :) I hope he is aware of it, otherwise it would be nice if someone could compile it for Windows. :bow:

Author:  Gomoto [ Sat Feb 15, 2020 12:08 pm ]
Post subject:  Re: Go4go recent delivery import error Kombilo

Because I am too dumb to compile Kombilo in Windows :roll: I use this for now :lol:

Code:
package main

import (
        "io/ioutil"
        "log"
        "os"
        "strings"
)

func main() {
        a := os.Args[1:][0]
        d := "Downloads/" + a + "/"
        files, err := ioutil.ReadDir("Downloads/" + a)
        if err != nil {
                log.Fatal(err)
        }
        for _, fi := range files {
                f, _ := ioutil.ReadFile(d + fi.Name())
                s := string(f)
                s = strings.Replace(s, "DT[2020", "DT[1020", -1)
                err = ioutil.WriteFile(d+fi.Name(), []byte(s), 0644)
                if err != nil {
                        log.Fatal(err)
                }
        }
}

Author:  ugoertz [ Wed Sep 23, 2020 11:22 am ]
Post subject:  Re: Go4go recent delivery import error Kombilo

Sorry for replying rather late.

I have received a few emails regarding this problem, and this issue was raised also on github. Even though the issue might be caused by the line mentioned above, I do not really understand that (and also, as was mentioned, it seems to be a Windows specific problem, which makes the thing even more mysterious).

As you may have guessed, I do not really have time to look deeper into this. (And even to change the one line and try whether that helps I would have to set up a (virtual) Windows machine etc., so it is not something I can do in 5 minutes.)

In fact, the whole Kombilo source code is quite outdated by now - the Python code should be moved over to Python 3, the C++ code should be updated as well. (And beyond that, it is also in principle appealing to move away from the current framework for the graphical user interface (Tkinter) to something more "modern".)

While in theory that is something I might like to do, it will definitively not happen within the next few months ... That does not necessarily mean that it would take that much time; but for me there are currently too many other things with a higher priority going on.

If anybody wants to have a go and fork (or take over) the Kombilo source code, or just reuse some of the things that are still useful, I will of course be happy to see that.

Sorry that I cannot be more helpful at this point.

Best regards, Ulrich

Author:  Gomoto [ Wed Sep 23, 2020 11:35 am ]
Post subject:  Re: Go4go recent delivery import error Kombilo

Thanks for Kombilo (I loved to use it and still use its library via Drago) and for your reply.

It somewhat helps to restore my selfconfidence to hear that it is no quick task to compile kombilo for windows even for its developer ;-)

Author:  bernds [ Wed Sep 23, 2020 1:04 pm ]
Post subject:  Re: Go4go recent delivery import error Kombilo

In case someone here doesn't read the other thread - I have implemented pattern search in q5go, and am looking for testers to make sure it works before making a new full release:

https://lifein19x19.com/viewtopic.php?p=260020#p260020

Other feedback and suggestions are also welcome. Adding some of the statistics features of Kombilo is still on the to-do list.

Author:  Knotwilg [ Wed Oct 13, 2021 1:33 pm ]
Post subject:  Re: Go4go recent delivery import error Kombilo

OK that explains why I can't add my recent games while I can add older games.

Where can I edit out the restriction? Which file?

Author:  misesenforce [ Sun Apr 03, 2022 6:24 am ]
Post subject:  Re: Go4go recent delivery import error Kombilo

Knotwilg wrote:
OK that explains why I can't add my recent games while I can add older games.

Where can I edit out the restriction? Which file?


vier wrote:
Gomoto wrote:
Oh nooooo!

It is a year 2020 problem.

Changing the game year in the date field to a pre 2020 year solves the problem for this sgf file.

I have little hope there will be a new kombilo version without the error. On the other hand the source code is available ...


Have you tried changing the line

libkombilo/pattern.h:const int DATE_PROFILE_END = 2020;

?


I had the same issue, and posted it here :

https://github.com/ugoertz/kombilo/issues/9

on the github repository hosting the source code of Kombilo.

Someone replied to me there and pointed to the current thread here, so I created a lifein19x19 profile and here I am !

On https://github.com/ugoertz/kombilo/issues/9 I learned that there is a file in the source code that contains the line :

Code:
const int DATE_PROFILE_END = 2020;
which basically tells that the maximum authorized year in SGF files is 2020 (or 2019, I can't recall).

I replaced that line with

Code:
const int DATE_PROFILE_END = 9999;
to be tranquil.

I then built Kombilo from that slighly modified source, and end up still having the same crash issue as I had initially ...

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/