Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

hooks: last-resort `python3` probe launches the Microsoft Store redirector on Windows (visible console flash, exit 9009)

Abierto Apto para principiantes
#4,563 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Deepjyoti-Sarmah ya está trabajando en esto.

Desde el 19/10/2026.

  • #4568 de @Deepjyoti-Sarmah — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
76/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python, shell

Línea de trabajo

Lee graphify/hooks.py e inspecciona el bloque «Last resort» de _PYTHON_DETECT, especialmente el orden de las comprobaciones de python3 y python. Reproduce la alternativa en Git Bash en Windows con el alias de ejecución de aplicaciones de Microsoft Store habilitado y sin tener instalado Store Python. El trabajo estará terminado cuando el hook evite iniciar el redireccionador de WindowsApps y siga encontrando un intérprete de Python disponible; el payload no indica ningún archivo de prueba.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Where: graphify/hooks.py, _PYTHON_DETECT, the "Last resort" block — python3 -c "$_GFY_PROBE" is tried before python -c … (0.9.92: L131–135; same order back to 0.8.36 L64–68).

What happens on Windows: with the Microsoft Store app-execution alias enabled (the Windows 10/11 default) and no Store Python installed, command -v python3 in Git Bash resolves to /c/Users/<me>/AppData/Local/Microsoft/WindowsApps/python3 — the AppInstallerPythonRedirector.exe stub. Running it opens a visible console window for ~1.1 s, then exits 9009. So on any machine where the pinned interpreter, .graphify_python, the launcher shebang and the uv-tools scan all miss (removed venv, graphify moved to another env, GUI git client with a minimal PATH), every commit flashes a terminal window before the hook falls through to python.

Environment: Windows 11 Home 23H2 (build 22631), Git for Windows, Windows Terminal 1.24 as default terminal, CPython 3.11.9 (per-user install under %LOCALAPPDATA%\Programs\Python, not the Store build), graphifyy 0.8.36 (probe block unchanged in 0.9.92).

Repro (Git Bash, alias on, no Store Python):

command -v python3          # -> /c/Users/<me>/AppData/Local/Microsoft/WindowsApps/python3
time python3 --version      # console window appears for ~1.1 s; exit code 9009

Measured three times from a hidden launcher: ~1.1 s each, one AppInstallerPythonRedirector.exe + OpenConsole.exe per call.

Caveat: on my machine the hook never reached this branch (the pinned interpreter has graphify), so this is measured on the alias directly, not through a hook run.

Suggested fix (either):

  • on Windows (uname -s = MINGW*/MSYS*/CYGWIN*) probe python before python3; or
  • skip a python3 whose resolved path contains /WindowsApps/ (case "$(command -v python3)" in */WindowsApps/*) ;; esac).

Related: #287 noted the WindowsApps stub's exit code for the AGENTS.md command; #1416 touches the python3 fallback in skill-claw.md. Neither covers the hook probe or the window flash. The console-window burst from DETACHED_PROCESS is #2253 (fixed in 0.9.29) and is a different mechanism.

Lenguaje dominante
Python
Estrellas
124k
Forks
11.9k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Graphify-Labs/graphify

Todos los issues de Graphify-Labs/graphify

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.