MuGo icon indicating copy to clipboard operation
MuGo copied to clipboard

About how to play MuGo

Open KamiYin opened this issue 8 years ago • 8 comments

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!

KamiYin avatar Aug 26 '17 16:08 KamiYin

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

brilee avatar Aug 26 '17 17:08 brilee

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 avatar Aug 26 '17 17:08 KamiYin

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 avatar Aug 27 '17 09:08 KamiYin

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

KamiYin avatar Aug 27 '17 09:08 KamiYin

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

tingtinglu avatar Sep 11 '17 16:09 tingtinglu

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.

brilee avatar Sep 12 '17 03:09 brilee

Why?I also encounter the same problem.

GuoJianCheng avatar Mar 26 '18 15:03 GuoJianCheng

pip install pygtp

Necther avatar Sep 30 '18 02:09 Necther