Python Compatibility and Reproducible Environments¶
The integrated source workspace targets standard 64-bit CPython 3.10 through 3.14. Use a current patch release in the selected minor series. Python 3.10.0 is excluded: the pinned Pydantic dependency uses the updated ForwardRef interface available from 3.10.1. Packaging declares the supported interval explicitly as 3.10.1 or later and below 3.15; this does not imply support for free-threaded, experimental or future interpreters.
Interpreter matrix¶
Each accepted interpreter must pass package consistency, application imports/startup, API/CLI behavior, CPU model execution, strategy accounting and real Langfuse SDK export. Source parsing alone is not a runtime compatibility claim. The local acceptance table is updated with the executed result and exact patch release.
| Interpreter | Web/API/CLI | HTTP/OpenAI/LiteLLM and Langfuse | CPU models and strategy accounting | Evidence |
|---|---|---|---|---|
| CPython 3.10.20 | Passed | Passed (LiteLLM 1.101.3) | Passed | 58 passes, one latency-gate skip; 3.10.0 excluded |
| CPython 3.11.14 | Passed | Passed | Passed | Windows execution |
| CPython 3.12.13 | Passed | Passed after quota-store contention correction | Passed | Matrix plus 38 focused quota/accounting checks |
| CPython 3.13.15 | Passed | Passed | Passed | 59 checks on Windows |
| CPython 3.14.5 | Passed | Passed | Passed | 59 checks on Windows; no upper-range fallback required |
The repository CI matrix covers these five minor versions on Windows and Linux. A configured workflow is not evidence that Linux jobs have already run; local execution here is Windows. Exact test counts and remaining boundaries are retained in the local acceptance record.
Conditional dependency versions¶
| Dependency | Python 3.10 | Python 3.11-3.14 |
|---|---|---|
| NumPy | 2.2.6 | 2.4.6 |
| SciPy | 1.15.3 | 1.17.0 |
| scikit-learn | 1.7.2 | 1.8.0 |
| LiteLLM | 1.101.3 (fixes upstream 3.10 typing imports) | 1.100.5 |
| FileLock | 3.32.3 | 4.2.4 |
| TOML reader | tomli 2.2.1 | Standard-library tomllib |
The project metadata, root requirements and universal hash locks use interpreter markers. Other transitive dependencies also carry version/platform markers. The Langfuse SDK remains pinned to 4.17.0. Optional language-model, numerical-model and observability groups must be included when testing those features. Installing only the base runtime does not install all optional integrations.
Do not modify Conda packages or patch third-party source files to obtain compatibility. Recreate a separate environment with the appropriate lock instead. No platform test is allowed to silently replace an unavailable model backend or optimizer with invented output.
Optional workers¶
Qlib and image verification retain their own dependency/worker profiles. Their minimum interpreter is 3.11 and must satisfy their own exact lock and preflight. The Web's Python 3.10 support does not imply that every optional worker uses that same interpreter. The Web can call a separately verified worker environment. Qlib's Pandas and image-worker Pillow profile must not be merged into the Web dependency set.
Store installations and temporary files on a separate drive¶
Environment paths can be configured explicitly while retaining strict package/version checks. The defaults remain the project environments; environment-location variables identify the expected installation for preflight. Worker launchers retain their own configured containment and interpreter rules. For a complete E-drive setup, run from an E-drive checkout/worktree so project-contained worker environments and temporary data also remain on E.
| Setting | Effect |
|---|---|
ALL_IN_ONE_WEB_ENVIRONMENT |
Expected isolated Web/model environment location |
ALL_IN_ONE_QLIB_ENVIRONMENT |
Expected isolated Qlib environment location |
ALL_IN_ONE_IMAGE_ENVIRONMENT |
Expected isolated image-worker environment location |
UV_CACHE_DIR |
Dependency cache directory |
UV_PYTHON_INSTALL_DIR |
Managed interpreter installation directory |
UV_PYTHON_BIN_DIR |
Interpreter entry directory; set explicitly to prevent unrelated user-bin entries |
TEMP, TMP on Windows; TMPDIR on Linux |
Build/download/test temporary directory |
PYTHONPYCACHEPREFIX |
Compiled Python cache directory |
For E-drive validation, the acceptance uses a temporary Git worktree on E with dependencies and caches inside it. This preserves source/data containment checks. Formal source edits remain in the primary workspace. Existing environments and earlier temporary artifacts are preserved; no cleanup is implied by moving later work to the selected drive.
Use the committed universal hash locks for installation. If a download mirror is needed, verify every wheel against the original registry and committed lock hashes before installation. A filename/version match is insufficient. The local matrix scripts retain failed attempts and never install a wheel whose hash is absent from the lock.
The startup preflight checks interpreter version, configured role path, package isolation, declared dependency versions and package origins. A diagnostic warning mode is not a successful compatibility result. Installed package consistency is also checked independently.
Monitoring and testing¶
See Langfuse monitoring for optional configuration and the difference between SDK export verification and a live dashboard check. First-time SDK import and environment initialization are distinguished from steady-state generation latency. Existing total model deadlines remain enforced; monitoring does not extend them.
Temporary services are stopped after tests. Credentials, environment directories, raw exports, private reports and caches stay out of Git and both documentation publications. The public README badge follows the final accepted range.
References: CPython 3.10.1 typing interface, SciPy 1.17 compatibility, scikit-learn 1.7.2 requirements and Langfuse 4.17.0 requirements.
The Python 3.10 LiteLLM branch uses the upstream fixed release rather than patching installed SDK files. See the upstream compatibility issue and fix.
Dependency security boundary on Python 3.10¶
OSV identifies advisories against the Python 3.10-compatible FileLock 3.32.3 branch. The fixed FileLock 4.2.1 and later require Python 3.11, so the current upstream releases do not provide a fully patched 3.10 branch. These are separate from functional compatibility, and package installation does not remove the advisories. Prefer Python 3.11-3.14 when this dependency security boundary is material. The direct platform uses project-contained lock paths, and the application does not expose the upstream ReadWriteLock/SoftFileLock interfaces as public tools. The installed dependency remains an explicit limitation; it is not suppressed in scans.
The Python 3.10 LiteLLM branch uses 1.101.3, including the upstream typing fix and proxy security fix; the platform invokes its controlled SDK interface rather than deploying the LiteLLM proxy. The existing Gradio/Pillow compatibility constraint also retains separately reported Pillow advisories. See the acceptance security records for scanner scope and aliases.
SQLite quota storage contention is retried within the original deadline even when quota waiting is disabled. A busy database is not evidence that the RPM allowance is exhausted. Quota exhaustion and concurrency caps retain their previous behavior.