python-env

Configure Python environments, run pytest suites, and troubleshoot MCP stdio IPC on Windows.

Updated May 29, 2026
One-click install
npx skills add https://github.com/JanVogelsang/UE-AgentFramework --skill python-env-janvogelsang
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: python-env
Source: https://github.com/JanVogelsang/UE-AgentFramework/tree/main/UnrealEngine/skills/python-env
Command: npx skills add https://github.com/JanVogelsang/UE-AgentFramework --skill python-env-janvogelsang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Python development on Windows often breaks due to restricted shell interpreters, case-sensitive path mismatches, and buffered stdout corrupting JSON-RPC stdio channels. This Skill provides the exact environment paths, commands, and rules to keep development and testing working in this Unreal Engine workspace. ## Core Features & Use Cases - Environment Rigging: Locates the correct Windows Store Python interpreter and provides pip install and pytest runner commands that bypass MSYS2/MinGW shell conflicts. - Build & Path Rules: Supplies the UAT mutex bypass variable for Unreal C++ builds and mandates os.path.normcase normalization for SQLite lookups and Clang parser paths. - MCP Stdio Troubleshooting: Defines rules for unbuffered subprocess launches (-u flag), stdout pollution prevention, and non-blocking MCP server handshakes. - Use Case: When your pytest run fails because python resolves to a MinGW shell without pip, follow this Skill to invoke the WindowsApps interpreter directly and run the test suite via run_tests.ps1. ## Quick Start Set up the Python environment and run the full test suite for this Unreal Engine workspace using the correct Windows interpreter.

Frequently Asked Questions about python-env

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run pytest on Windows when python resolves to MSYS2?▼

Invoke the Windows Store interpreter directly at $env:USERPROFILE\AppData\Local\Microsoft\WindowsApps\python.exe instead of relying on PATH. Install dependencies with that interpreter's -m pip, then run tests via the run_tests.ps1 PowerShell wrapper.

Why does my MCP server hang during the JSON-RPC handshake?▼

Python buffers stdout when piped, which blocks JSON-RPC readers. Launch the server with the -u unbuffered flag and move heavy initialization like AST parsing to a background thread so the handshake completes immediately.

How do I prevent stdout pollution in stdio MCP servers?▼

The stdio channel must carry only JSON-RPC messages. Redirect any internal subprocess output, such as pip install, to subprocess.DEVNULL or stderr so raw text never corrupts the client parser.

Why do path comparisons fail on Windows in SQLite or Clang tooling?▼

Windows is case-insensitive but SQLite queries and Clang parser outputs may use mixed case or slash directions. Normalize every path with os.path.normcase(os.path.abspath(path)) before lookups, indexing, or test assertions.

How do I avoid Unreal Engine build lock conflicts with UAT?▼

Set the environment variable $env:uebp_UATMutexNoWait = '1' before compiling. Then run build_plugin.ps1 with -NoZip to bypass concurrent build session mutex locks.