slackapi / slackapi/python-slack-hooks

The "python" runtime executable is not detected on Windows machines

未关闭
#70 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

auto-triage-skip bug
主要语言
Python
星标
9
派生
2
平均合并
13 小时 3 分钟
30 天内合并 PR
1

描述

Description

After configuring a virtual environment with the latest Python CLI hooks and running the app it appears that the runtime cannot be found.

Version
Using slack.exe v3.9.0
OS Info
> ver
Microsoft Windows [Version 10.0.22000.2538]
 > pwsh --version
PowerShell 7.5.3
> python --version
Python 3.14.0
Steps to reproduce:

Share the commands to run, source code, and project settings:

  1. Create an app from the Bolt for Python starter template: http://github.com/slack-samples/bolt-python-starter-template
  2. Set up the virtual environment including hooks.
  3. Attempt to install and run a new app with the verbose flag.
Expected result:

The app to begin using the installed "python" runtime.

Actual result:
> slack run --team T02A074M3U3

> If you leave this team, you can no longer manage the installed apps
   Installed apps will belong to the team if you leave the workspace

Check C:\Users\user\.slack\logs\slack-debug-20251031.log for error logs
The hook runtime executable was not found (runtime_not_found)
   The `start` script was not found (sdk_hook_not_found)

> Suggestion
   Make sure the required runtime has been installed to run hook scripts.

From the verbose logs:

starting hook command: python3 -m slack_cli_hooks.hooks.get_hooks
P
ython was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.
finished hook command: python3 -m slack_cli_hooks.hooks.get_hooks
failed to initialize hook configurations: Error running 'GetHooks' command: exit status 1 (sdk_hook_invocation_failed)
   Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

> Suggestion
   Run `slack.exe doctor` to check that your system dependencies are up-to-date.

Requirements
  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从详细日志中显示的 Windows hook 调用开始:python3 -m slack_cli_hooks.hooks.get_hooks,并跟踪 CLI 如何选择运行时可执行文件。使用列出的 Windows、PowerShell 和 Python 版本验证行为;当找到已安装的 python 运行时且 hook 配置成功初始化时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。