Skip to content

Fix MCP subprocess PYTHONPATH in containerized environments#25

Open
peyron-amd wants to merge 1 commit intodevfrom
fix/mcp-bridge-subprocess-pythonpath
Open

Fix MCP subprocess PYTHONPATH in containerized environments#25
peyron-amd wants to merge 1 commit intodevfrom
fix/mcp-bridge-subprocess-pythonpath

Conversation

@peyron-amd
Copy link
Copy Markdown

Include parent process site-packages in MCP subprocess PYTHONPATH.
Fixes ImportError for transitive dependencies (e.g. cachetools) when running inside Singularity/Apptainer with --system-site-packages venvs.

This has been tested and confirmed to work with venv in Singularity containers on LUMI cluster + in docker on a Vultr cluster. Previous version only works on the latter.

Fixes ImportError for transitive dependencies (e.g. cachetools) when
running inside Singularity/Apptainer with --system-site-packages venvs.

Made-with: Cursor
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.

1 participant