Environment:ARCANGEL0 EVA Python 3 10 Environment
| Knowledge Sources | |
|---|---|
| Domains | Infrastructure, Security |
| Last Updated | 2026-10-29 12:00 GMT |
Overview
Python 3.10+ runtime with Textual TUI framework, MCP protocol client, Pydantic, and Rich console libraries.
Description
This environment provides the base Python runtime required by every Mitsu implementation. It is built on Python 3.10 or newer and includes the core application dependencies: the Textual TUI framework for the terminal user interface, the MCP protocol client for tool host communication, Pydantic for data validation, Rich for formatted console output, and Pillow for image handling. The project declares `requires-python = ">=3.10"` and targets Python 3.10, 3.11, and 3.12. The operating system is declared as OS Independent, though several subsystems require Linux.
Usage
This environment is mandatory for all Mitsu implementations. Every agent turn, TUI screen, tool dispatch, search, and storage operation runs inside this Python runtime. Without Python 3.10+ and the declared pip dependencies installed, no part of the application can start.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | OS Independent | Linux required for Docker and armory subsystems |
| Python | >= 3.10 | Python 3.10, 3.11, 3.12 supported |
| Disk | 100MB | For pip packages and session data |
Dependencies
System Packages
- `python3` >= 3.10
- `python3-pip` (or equivalent package manager)
- `git` (for source-based armory installs)
Python Packages
- `Pillow` >= 10.0.0
- `mcp` >= 2.3, < 3
- `pydantic` >= 2.0
- `rich` >= 13.7.0
- `textual` >= 1.0.0
Credentials
No environment variables are required for the base Python runtime itself. Provider API keys are managed separately (see Environment:ARCANGEL0_EVA_LLM_Provider_Endpoint).
Quick Install
# Install all required Python packages
pip install Pillow>=10.0.0 "mcp>=2.3,<3" pydantic>=2.0 rich>=13.7.0 textual>=1.0.0
Code Evidence
Python version requirement from `pyproject.toml:12`:
requires-python = ">=3.10"
Core dependencies from `pyproject.toml:26-32`:
dependencies = [
"Pillow>=10.0.0",
"mcp>=2.3,<3",
"pydantic>=2.0",
"rich>=13.7.0",
"textual>=1.0.0",
]
MCP protocol import from `tools/agent_host.py:21-23`:
from mcp import Client, StdioServerParameters
from mcp.server import MCPServer
from mcp.types import ToolAnnotations
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `ModuleNotFoundError: No module named 'textual'` | Textual not installed | `pip install textual>=1.0.0` |
| `ModuleNotFoundError: No module named 'mcp'` | MCP client not installed | `pip install "mcp>=2.3,<3"` |
| `ImportError: cannot import name 'Client' from 'mcp'` | MCP version too old | Upgrade: `pip install "mcp>=2.3,<3"` |
| `SyntaxError: match ... case` | Python version below 3.10 | Upgrade to Python 3.10 or newer |
Compatibility Notes
- Python 3.10 minimum: The codebase uses structural pattern matching and other 3.10+ features.
- MCP version pin: The MCP package is pinned to `>=2.3, <3` to match the `Client` and `MCPServer` API surface.
- OS Independent label: While the package declares OS Independent, Docker installation and native package management features require Linux.
Related Pages
- Implementation:ARCANGEL0_EVA_run_agent_turn
- Implementation:ARCANGEL0_EVA_AgentToolHost
- Implementation:ARCANGEL0_EVA_request_agent_turn
- Implementation:ARCANGEL0_EVA_MitsuApp_open_session
- Implementation:ARCANGEL0_EVA_CredentialStore
- Implementation:ARCANGEL0_EVA_PreferencesStore
- Implementation:ARCANGEL0_EVA_OnboardingScreen
- Implementation:ARCANGEL0_EVA_SearchEnginePanel
- Implementation:ARCANGEL0_EVA_finish_interrupted_tools
- Implementation:ARCANGEL0_EVA_list_models
- Implementation:ARCANGEL0_EVA_check_reasoning_support
- Implementation:ARCANGEL0_EVA_intel_context
- Implementation:ARCANGEL0_EVA_intel_page
- Implementation:ARCANGEL0_EVA_upsert_asset
- Implementation:ARCANGEL0_EVA_upsert_finding
- Implementation:ARCANGEL0_EVA_upsert_exploit
- Implementation:ARCANGEL0_EVA_vulnerability_queries
- Implementation:ARCANGEL0_EVA_search_vulnerabilities
- Implementation:ARCANGEL0_EVA_search_exploitdb
- Implementation:ARCANGEL0_EVA_search_vulnx
- Implementation:ARCANGEL0_EVA_search_web
- Implementation:ARCANGEL0_EVA_ToolSpec
- Implementation:ARCANGEL0_EVA_build_install_script
- Implementation:ARCANGEL0_EVA_inspect_tool
- Implementation:ARCANGEL0_EVA_install_docker_engine
- Implementation:ARCANGEL0_EVA_setup_local_searxng
- Implementation:ARCANGEL0_EVA_ensure_local_searxng_running
- Implementation:ARCANGEL0_EVA_stop_local_searxng
- Implementation:ARCANGEL0_EVA_capture_workspace
- Implementation:ARCANGEL0_EVA_diff_workspace
- Implementation:ARCANGEL0_EVA_apply_undo_changes
- Implementation:ARCANGEL0_EVA_create_surface_map
- Implementation:ARCANGEL0_EVA_build_surface_graph