Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

video-agent-kit (0.4.3): hooks invoke python3, which doesn't exist on Windows — SessionStart/UserPromptSubmit/Stop hooks fail on every trigger

Aperta Adatta ai principianti
#14 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@dvd233 ci sta già lavorando.

Dal 23/9/2026.

  • #38 di @dvd233 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
85/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Inizia da hooks/hooks.json ed esamina i comandi per env_check.py, check_video_input.py e check_closeout.py. Riproduci le invocazioni degli hook su Windows con i launcher Python disponibili, quindi verifica che SessionStart, UserPromptSubmit e Stop non producano più errori command-not-found.

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

Descrizione

Environment

  • OS: Windows 11 (build 10.0.26200)
  • ZCode: desktop client
  • Plugin: video-agent-kit 0.4.3
  • Python: 3.14 (python.org install — exposes python.exe and the py launcher; there is no python3 on PATH)

Symptom

Every SessionStart, UserPromptSubmit, and Stop event logs a hook failure (hook.run.failed in the ZCode log, source plugin.video-agent-kit@zcode-plugins-official.*, ~50 ms duration = command-not-found). Across one day of normal use this produced ~75 failure entries across all open sessions.

Root cause

hooks/hooks.json invokes all three hook scripts through python3:

  • env_check.py (SessionStart)
  • check_video_input.py (UserPromptSubmit)
  • check_closeout.py (Stop)

Windows Python installers do not create a python3 executable, so the command never resolves.

Suggested fix

Any of:

  1. Invoke the scripts with python (present on Windows and nearly all dev machines), or
  2. Resolve the interpreter dynamically at hook time (prefer python3, fall back to python/py), or
  3. Document a python3-on-PATH requirement for Windows users.

Side note: env_doctor.py correctly pins the MCP SDK to >=1.0.0,<2.0.0 — installing MCP SDK 2.x satisfies import mcp but breaks the 1.x Server API the plugin uses, so that version-pinned check is doing real work.

Local workaround (for anyone hitting this)

Patch the three interpreter refs in the plugin's hooks/hooks.json from python3 to python, and/or drop a python3.cmd shim (@python %*) into a PATH directory that Windows processes can see (e.g. the Python install dir). Both verified working on 0.4.3.

Lingua principale
Python
Stelle
86
Fork
51
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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.

Altre issue di zai-org/zcode-plugins

Tutte le issue di zai-org/zcode-plugins

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.