You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix exit-code-1 on Windows: config path mismatch and stdout encoding
Two root causes:
1. DATA_DIR mismatch: Electron always writes config/credentials to
~/.auto_note/ but Python scripts in dev mode fall back to PROJECT_DIR
when not frozen and not installed to ~/.auto_note/scripts/. On a
fresh Windows clone the project root has no config.json, so
CANVAS_URL is empty and the first API call exits with code 1.
Fix: pass AUTONOTE_DATA_DIR env var from Electron so all four
pipeline scripts (downloader, extract_caption, semantic_alignment,
note_generation) resolve DATA_DIR correctly regardless of where the
script file lives.
2. Windows stdout encoding: Python defaults to cp1252 on Windows when
stdout is piped, causing UnicodeEncodeError on tqdm/Unicode output.
Fix: add PYTHONIOENCODING=utf-8 and PYTHONUTF8=1 to subprocess env
in both Electron main.js and gui.py.
0 commit comments