slackapi / slackapi/python-slack-hooks
The "python" runtime executable is not detected on Windows machines
オープン
まだ誰も着手していません。
auto-triage-skip
bug
- 主要言語
- Python
- スター
- 9
- フォーク
- 2
- 平均マージ
- 13時間 3分
- マージ済み PR(30日)
- 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:
- Create an app from the Bolt for Python starter template: http://github.com/slack-samples/bolt-python-starter-template
- Set up the virtual environment including hooks.
- 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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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