Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

About how to play MuGo #27

Open
KamiYin opened this issue Aug 26, 2017 · 8 comments
Open

About how to play MuGo #27

KamiYin opened this issue Aug 26, 2017 · 8 comments

Comments

@KamiYin
Copy link

KamiYin commented Aug 26, 2017

At running
python main.py gtp policy --read-file=saved_models/20170718'
it appeared that
AttributeError: module 'gtp' has no attribute 'Engine' .

Besides, when I ran the code
`gogui-twogtp -black 'python main.py gtp policy --read-file=saved_models/20170718' -white 'gogui-display'-size 19 -komi 7.5 -verbose -auto
in cmd it will be
Unknown option --read-file=saved_models/20170718'

I will appreciate it if anyone could help me!

@brilee
Copy link
Owner

brilee commented Aug 26, 2017

Have you run pip install yet? It seems like your installed modules are missing the right libraries.

@KamiYin
Copy link
Author

KamiYin commented Aug 26, 2017

Yes,i installed your .txt
And i installed gtp from pypi.
Before i ran Mugo i had changed cuDNN v5 into v5.1.
I dont know whether it's the point of the question

@KamiYin
Copy link
Author

KamiYin commented Aug 27, 2017

After I uninstall gtp, it works!!! It said GTP engine ready. So what should I type in next? I found that whatever I type in there just is '? unknown command'.

What's more, when I ran

gogui-twogtp -black 'python main.py gtp policy --read-file=saved_models/20170718' -white 'gogui-display'-size 19 -komi 7.5 -verbose -auto

it seems that there is still something wrong. Here is the code,

Unknown option --read-file=saved_models/20170718'

@KamiYin
Copy link
Author

KamiYin commented Aug 27, 2017

And I found another quesqion...

gogui -size 19 -program "$TWOGTP" -computer-both -auto
File "stdin", line 1
gogui -size 19 -program "$TWOGTP" -computer-both -auto
^(point to 19)
SyntaxError: invalid syntax

@tingtinglu
Copy link

I have came across with the same issue with KamiYin. Why will this happen?

@brilee
Copy link
Owner

brilee commented Sep 12, 2017

As mentioned above, it's because there are two libraries named "gtp.py", which have different methods and classes. One of them works with MuGo, the other one doesn't.

Your issue seems to be with quoting rules in windows cmd shell. I'm developing on a Mac/Ubuntu so I'm not sure what the correct quoting rules are. The command python main.py gtp policy --read-file=saved_models/20170718 should start up the program with a GTP interface. Any GTP-compliant UI should work here; you may want to try something besides gogui on windows.

@GuoJianCheng
Copy link

Why?I also encounter the same problem.

@Necther
Copy link

Necther commented Sep 30, 2018

pip install pygtp

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants