slackapi / slackapi/python-slack-hooks

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

Aperta
#70 3 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

auto-triage-skip bug
Lingua principale
Python
Stelle
9
Fork
2
Merge medio
13h 3m
PR unite (30g)
1

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia con l’invocazione dell’hook Windows mostrata nel log dettagliato: python3 -m slack_cli_hooks.hooks.get_hooks, e traccia il modo in cui la CLI seleziona l’eseguibile del runtime. Verifica il comportamento con le versioni indicate di Windows, PowerShell e Python; il lavoro è completato quando viene trovato il runtime python installato e la configurazione dell’hook viene inizializzata correttamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.