From c09b1ae30135230054b717844d443ca12230f378 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 10 Jun 2026 13:17:34 -0500 Subject: [PATCH] fix(deps): add missing gym dependency for RL environments src/environments/{base,options_env}.py and the RL training path import `gym` / `from gym import spaces`, but gym was absent from requirements.txt, so the entire environments subsystem failed at import (ModuleNotFoundError) and all environment tests errored at collection. Add gym>=0.26.2. Verified on Python 3.13: gym imports and all 131 tests under tests/environments/ pass. gym is unmaintained (no NumPy 2.0 support for its full feature set), but the codebase only uses gym.spaces, which works; a migration to gymnasium is noted inline as future work. Closes #7 Co-Authored-By: Claude Opus 4.8 --- requirements.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/requirements.txt b/requirements.txt index 4c000e7..0064dc2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,6 +19,11 @@ torch>=2.0.0 scikit-learn>=1.3.0 scipy>=1.11.0 +# Reinforcement learning environments (src/environments uses gym.spaces). +# gym is unmaintained; gymnasium is the maintained drop-in successor and a +# future migration target, but the current code imports `gym` directly. +gym>=0.26.2 + # Additional utilities for ML/AI (future use) matplotlib>=3.7.0 seaborn>=0.12.0