slackapi / slackapi/python-slack-hooks

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

Offen
#70 3 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

auto-triage-skip bug
Vorherrschende Sprache
Python
Sterne
9
Forks
2
Ø Merge
13 Std. 3 Min.
Gemergte PRs (30 T.)
1

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit dem im ausführlichen Protokoll gezeigten Windows-Hook-Aufruf: python3 -m slack_cli_hooks.hooks.get_hooks, und verfolge, wie die CLI die ausführbare Laufzeitdatei auswählt. Überprüfe das Verhalten mit den aufgeführten Windows-, PowerShell- und Python-Versionen; abgeschlossen ist die Aufgabe, wenn die installierte python-Laufzeit gefunden wird und die Hook-Konfiguration erfolgreich initialisiert wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.