From dc64f158390db21ee6fb099ba48a4b89aaf90d5f Mon Sep 17 00:00:00 2001 From: Pnant <73925474+Panniantong@users.noreply.github.com> Date: Mon, 9 Mar 2026 01:28:51 +0800 Subject: [PATCH] fix: add missing shutil import in weibo and xiaoyuzhou installers (#125) Both _install_weibo_deps() and _install_xiaoyuzhou_deps() use shutil.which() but didn't import shutil, causing NameError during agent-reach install. Co-authored-by: Panniantong --- agent_reach/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agent_reach/cli.py b/agent_reach/cli.py index 7c7b91a..88eec69 100644 --- a/agent_reach/cli.py +++ b/agent_reach/cli.py @@ -459,6 +459,8 @@ def _install_system_deps(): def _install_xiaoyuzhou_deps(): """Install Xiaoyuzhou podcast transcription script.""" + import shutil + print("Setting up Xiaoyuzhou podcast transcription...") tools_dir = os.path.expanduser("~/.agent-reach/tools/xiaoyuzhou") @@ -506,6 +508,7 @@ def _install_xiaoyuzhou_deps(): def _install_weibo_deps(): """Install Weibo MCP server (Panniantong fork with visitor passport auth).""" + import shutil import subprocess print("Setting up Weibo MCP server...")