slackapi / slackapi/python-slack-hooks
The "python" runtime executable is not detected on Windows machines
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 9
- Forks
- 2
- Merge medio
- 13 h 3 min
- PR fusionados (30 d)
- 1
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con la invocación del hook de Windows mostrada en el registro detallado: python3 -m slack_cli_hooks.hooks.get_hooks, y sigue cómo la CLI selecciona el ejecutable del runtime. Verifica el comportamiento con las versiones de Windows, PowerShell y Python indicadas; se considera terminado cuando se encuentra el runtime python instalado y la configuración del hook se inicializa correctamente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- cli
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100