Git Product home page Git Product logo

Comments (7)

zakki avatar zakki commented on August 26, 2024

Maybe it's because of difference between python 2 and 3. Could you try develop HEAD?

from cgos.

CGLemon avatar CGLemon commented on August 26, 2024

Thanks! The last python-client is working. But my server said the db.execute(...).fetchone() is None type.

gid = db.execute(
"SELECT gid FROM gameid WHERE ROWID=1"
).fetchone()[0]

The error report is

TypeError: 'NoneType' object is not subscriptable

What's possible wrong with it?

from cgos.

zakki avatar zakki commented on August 26, 2024

Perhaps this insert statement during initialization failed.

conn.execute("INSERT into gameid VALUES(1)")

Manualy sqlite3 /home/cgosboar/19x19/cgos.state and INSERT into gameid VALUES(1); would fix it.

I got that error once, but I dont' have detail yet.

from cgos.

zakki avatar zakki commented on August 26, 2024

I added commit() to other update statements.

from cgos.

CGLemon avatar CGLemon commented on August 26, 2024

The GTP client must read the stderr string. If stderr buffer is full, the client may not read stdout string.

OS: Ubuntu 20.04
python version: 3.8

from cgos.

zakki avatar zakki commented on August 26, 2024

Default paramter of subprocess.Popen is stderr=None, so I think that AI's stderr is just redirected to cgos client's stderr.
https://github.com/zakki/cgos/blob/genmove_analyze/client-python/src/gtpengine.py#L154

Do you use stderr=subprocess.PIPE?

from cgos.

CGLemon avatar CGLemon commented on August 26, 2024

Sorry, I suffered this issue in my project. So I guess there is a same issue here. It is my mistake.

from cgos.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.