Skip to content

Set PYTHONNOUSERSITE=1 to isolate bundled Python#38

Merged
Ofir Gluzman (ofirgluzman) merged 1 commit intomainfrom
fix/isolate-bundled-python
Mar 8, 2026
Merged

Set PYTHONNOUSERSITE=1 to isolate bundled Python#38
Ofir Gluzman (ofirgluzman) merged 1 commit intomainfrom
fix/isolate-bundled-python

Conversation

@ofirgluzman
Copy link
Member

Summary

  • Set PYTHONNOUSERSITE=1 when spawning the backend process, preventing system-wide Python packages from leaking into the bundled runtime
  • Fixes crashes caused by conflicting packages (e.g. torchvision) from a user's separate Python 3.13 installation

Fixes part of #7

Test plan

  • TypeScript typecheck passes
  • Verify on Windows with system Python 3.13 + torchvision installed that the backend starts cleanly

🤖 Generated with Claude Code

A system-wide Python 3.13 installation can leak user site-packages
(e.g. torchvision) into the bundled runtime, causing import conflicts
that crash the backend on startup.

Fixes part of #7

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ofirgluzman Ofir Gluzman (ofirgluzman) merged commit b84b7e9 into main Mar 8, 2026
4 checks passed
@ofirgluzman Ofir Gluzman (ofirgluzman) deleted the fix/isolate-bundled-python branch March 8, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants