Troubleshooting
Quick fixes for common problems when installing, developing, building, or running TauPy apps.
1. Installation & environment
-
WebView2 runtime not found
Runtaupy doctorto confirm. Install from Microsoft: https://go.microsoft.com/fwlink/p/?LinkId=2124703. -
Python version mismatch
Use Python 3.9+ (CPython recommended). Verify:python -V. -
Node/npm missing (React projects)
Install Node 18+ and npm 9+. Check withnode -vandnpm -v. -
Long path errors on Windows
Enable long paths once:git config --system core.longpaths true.
2. Dev mode (taupy dev)
-
Port already in use (5173/8765/8000)
Pick another port:TAUPY_HTTP_PORT=5174 TAUPY_WS_PORT=8766 taupy dev. Close the conflicting app or free the port. -
Blank window or 404 in dev
Vite may not be running. Ensurenpm run devsucceeded or reruntaupy devso TauPy starts Vite for you. Confirm the Vite URL in logs (http://localhost:<port>). -
WebSocket does not connect / HMR not working
Firewalls can block localhost WS. Allow local connections on8765. If developing over a network share, move the project to a local disk so file watching works reliably. -
npmnot found message duringtaupy dev
Install Node/npm or switch to the Python template (no NPM needed). On Windows, ensurenpm.cmdis on PATH.
3. Build & packaging (taupy build)
-
nuitka not found
Install in the active environment:python -m pip install nuitka. -
npm run buildfails
Fix React/Vite errors first. Runnpm run buildmanually to see the stack trace; check Node/npm versions againstpackage.jsonengines. -
Antivirus deletes
app.exe
Switch to directory mode: setonefile = falseintaupy.tomland rebuild, or whitelist the file. -
Packaged app shows blank window
Ensuredist/exists next toapp.exeandlauncher/. In production keepexternal_http = falseso assets load locally. -
taupy.exemissing
Checklauncher/insidetarget/. If absent, reruntaupy build; if you customized the launcher, copy your built binary there.
4. Runtime issues
-
Window does not open
Verifylauncher/taupy.exeruns (double-click intarget/). Check that WebView2 runtime is installed and not blocked by antivirus. -
WebSocket drops in packaged app
Firewall may block localhost. Allowapp.exeand ports8000/8765. Avoid settingTAUPY_EXTERNAL_HTTPin production unless you really load an external server. -
Slow startup
Onefile EXEs decompress on first run. Useonefile = falsefor faster start, or keep the app warm during demos.
5. If nothing helps
- Run
taupy doctorand share its output. - Re-run with debug logging in React: construct
new TaupyClient({ debug: true }). - Open an issue on GitHub with OS version, Python/Node versions, the command you ran, and full logs.