mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 11:12:35 +02:00
A clean Windows 10 install crashed on startup: init_db() -> SQLAlchemy async engine -> greenlet failed with "DLL load failed while importing _greenlet: The specified module could not be found", so uvicorn never bound :8000 and the dashboard refused all connections while the NSSM service still showed running. greenlet's _greenlet.pyd is C++ and needs vcruntime140_1.dll, which the python.org embeddable distribution does not ship (it includes only vcruntime140.dll, enough for the pure-C python313.dll). Machines with the VC++ 2015-2022 redistributable already installed have the DLL in System32, which masked the bug in testing. Stage vcruntime140_1.dll and msvcp140.dll next to python.exe at build time, from a vendored copy or the runner's System32, failing loudly if absent. The Inno Setup [Files] step already copies staging\python\* recursively.