#25260 [Bug]: Prisma query engine crashes immediately on first query on Windows (pip install) - LiteLLM 1.82.x / 1.83.0
### Check for existing issues
- [x] I have searched the existing issues and checked that my issue is not a duplicate.
### What happened?
Environment
OS: Windows 10/11 x64 Python: 3.12.x (pythoncore-3.12-64) LiteLLM versions affected: 1.82.0, 1.82.3, 1.83.0 LiteLLM last working version: 1.81.16 Installation method: pip (not Docker) prisma-client-py: 0.15.0 Prisma CLI: 5.17.0 Node.js: v20.19.1 (also reproduced with v24.14.1) PostgreSQL: 15.x at 127.0.0.1:5432 Virtual environment: Python venv at C:\LiteLLM\venv
What happened? After upgrading from LiteLLM 1.81.x to any 1.82.x or 1.83.0 release via pip on Windows, the Prisma query engine crashes immediately on the first database query after startup. LiteLLM becomes completely unable to read from or write to the PostgreSQL database. The Prisma migrations run successfully. The query engine binary is found and its PID is logged. However the very first query LiteLLM makes after startup returns httpcore.ReadError, indicating the engine process crashes mid-response. All subsequent queries fail with httpcore.ConnectError: All connection attempts failed because the engine process is dead. Critically: The Prisma engine works perfectly fine…