fix: unset PYTHONPATH to prevent Python 3.12 ABI contamination #3
Reference in New Issue
Block a user
Delete Branch ":main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add
makeWrapperArgs = [ "--unset" "PYTHONPATH" ]to the derivation. The Nix-built binary works perfectly in a clean environment but crashes when the host environment's PYTHONPATH (from mautrix, etc.) injects Python 3.12 site-packages into the Python 3.13 wrapper, causing C extension ABI mismatches (PIL._imaging).