Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how-to-install-katago-on-mac/ #3

Open
utterances-bot opened this issue Jun 16, 2023 · 10 comments
Open

how-to-install-katago-on-mac/ #3

utterances-bot opened this issue Jun 16, 2023 · 10 comments

Comments

@utterances-bot
Copy link

如何在 Mac 上安裝圍棋 AI - KataGo | CodingMan.cc

想在 Mac 下圍棋嗎?想搭上圍棋 AI 的熱潮但又不知如何下手嗎? 這篇文章將會帶著你一步一步地教你怎麼在 Mac 上安裝 KataGo 搭配 Sabaki ui,在 Mac 上也可以享受圍棋 AI 的樂趣!

https://codingman.cc/how-to-install-katago-on-mac/

Copy link

看了你的攻略成功安装部署,机器太强了,完全下不过。

Copy link

我按照攻略安装完之后开始用Katago下棋时 Katago运行失败 error message: “libc++abi: terminating due to uncaught exception of type StringError: Error creating directory: gtp_logs”。 请问知道怎么解决吗

Copy link
Owner

你可以把你設定參數丟出來看看嗎?

@yiweiliu008
Copy link

gtp -model /usr/local/Cellar/katago/1.13.2/share/katago/g170-b30c320x2-s4824661760-d1229536699.bin.gz -config /usr/local/Cellar/katago/1.13.2/share/katago/configs/gtp_example.cfg

Thanks!

@PttCodingMan
Copy link
Owner

gtp -model /opt/homebrew/Cellar/katago/1.13.2/share/katago/g170-b30c320x2-s4824661760-d1229536699.bin.gz -config /opt/homebrew/Cellar/katago/1.13.2/share/katago/configs/gtp_example.cfg

路徑好像不太一樣,你試試看在 /opt/homebrew/Cellar/katago/ 底下找找看?

@yiweiliu008
Copy link

yiweiliu008 commented Dec 25, 2023

我的Katago好像装在了/usr/local/Cellar/katago下面
brew list --verbose katago
/usr/local/Cellar/katago/1.13.2/INSTALL_RECEIPT.json
/usr/local/Cellar/katago/1.13.2/LICENSE
/usr/local/Cellar/katago/1.13.2/bin/katago
/usr/local/Cellar/katago/1.13.2/.brew/katago.rb
/usr/local/Cellar/katago/1.13.2/README.md
/usr/local/Cellar/katago/1.13.2/share/katago/g170-b30c320x2-s4824661760-d1229536699.bin.gz
/usr/local/Cellar/katago/1.13.2/share/katago/g170-b40c256x2-s5095420928-d1229425124.bin.gz
/usr/local/Cellar/katago/1.13.2/share/katago/g170e-b20c256x2-s5303129600-d1228401921.bin.gz
/usr/local/Cellar/katago/1.13.2/share/katago/configs/misc/datamining1.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/misc/datamining4.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/match_example.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/gtp_example.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/training/selfplay8a.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/training/gatekeeper2bfaster.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/training/gatekeeper2a.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/training/selfplay8b.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/training/gatekeeper2b.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/training/gatekeeper2c.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/training/gatekeeper1.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/training/selfplay1.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/training/selfplay2.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/training/selfplay8b20.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/analysis_example.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/contribute_example.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/book/genbook7tt.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/book/genbook7jp.cfg
/usr/local/Cellar/katago/1.13.2/share/katago/configs/task_example.cfg

我也是通过brew install katago安装的

Copy link
Owner

那根據錯誤訊息,我猜測可能是路徑不同導致的權限問題。

試著把 /usr/local/Cellar/katago/ 權限開大一點。

Copy link

cesium27 commented Jan 5, 2024

按您的方法部署了,但是一直跑不出結果,點擊Toggle Analysis 顯示 “None of the attached engines support analysis.”
配置是 gtp -model /opt/homebrew/Cellar/katago/1.14.0/share/katago/g170-b40c256x2-s5095420928-d1229425124.bin.gz -config /opt/homebrew/Cellar/katago/1.14.0/share/katago/configs/gtp_example.cfg
請問有辦法解決嗎 感謝

Copy link

您好,我提示libc++abi: terminating due to uncaught exception of type IOError: Could not open file /opt/homebrew/Cellar/katago/1.14.4/share/katago/configs/gtp_example.cfg - does not exist or invalid permissions?请问有解决办法吗?

Copy link

@ yiweiliu008,我找到解决方案了,你可以试试
参考:https://blog.csdn.net/weixin_44001725/article/details/131947369
https://blog.csdn.net/weixin_40147097/article/details/137350897

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

No branches or pull requests

6 participants