Registry / ai-ml / gym-notices

gym-notices

JSON →
library0.1.0pypypi✓ verified 23d ago

gym-notices is a Python library that provides important advisories and warnings for the original Gym (OpenAI Gym) reinforcement learning toolkit. These notices may be displayed automatically upon importing Gym on internet-connected systems, informing users about major reproducibility issues, outdated versions, or the library's maintenance status. It is currently at version 0.1.0 and releases are infrequent, primarily focused on issuing critical warnings.

pip install gym-notices
INSTALL
IMPORT
SIG · GYM-NOTICES
G
gym-notices
ai-mlpythonv0.1.0
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gym_notices
import gym_notices
The library primarily functions by displaying notices automatically on import of either `gym_notices` or `gym` (if `gym_notices` is a dependency of `gym`), rather than exposing explicit classes or functions to call.

Simply importing `gym_notices` or `gym` (if `gym_notices` is a dependency of `gym`) triggers the notice system. Warnings are displayed automatically if relevant conditions (like using an unsupported Gym version or Gym's deprecation) are detected and an internet connection is available to fetch the latest advisories.

import gym_notices # When specific conditions (e.g., outdated Gym version, internet connectivity) # are met, warnings from gym-notices will be printed to stdout upon import.
Debug
Known issues
breakingThe original OpenAI Gym library, which `gym-notices` monitors, is no longer actively maintained. All future development has moved to `Gymnasium`. `gym-notices` will often warn users about this and recommend migrating to `Gymnasium` (import `gymnasium as gym`).
fix
Migrate your code from `gym` to `gymnasium` by installing `gymnasium` and changing `import gym` to `import gymnasium as gym`.
affects: All versions of `gym` (OpenAI Gym), especially those pre-dating 0.26.0.
gotcha`gym-notices` operates passively and delivers warnings upon import. Users might incorrectly expect explicit API calls or functions to retrieve notices, but its design is to automatically inform users of critical issues in the background.
fix
Understand that the library's primary function is passive notification. Ensure `gym_notices` is installed and imported alongside `gym` (or if `gym` depends on it) to receive advisories.
affects: All versions
gotchaWarnings from `gym-notices` are fetched from an online source. Users in environments without internet connectivity will not receive the latest advisories about `gym`'s status or specific version issues.
fix
Ensure internet connectivity when running code that imports `gym` or `gym_notices` to receive timely warnings. Regularly check the `Farama-Foundation/gym-notices` GitHub repository for the latest information if working offline.
affects: All versions
deprecatedSpecific versions of `gym`, notably 0.24.0 and 0.24.1, were identified as having significant bugs. `gym-notices` was updated to specifically flag and warn against the use of these problematic `gym` versions.
fix
Avoid using `gym` versions 0.24.0 and 0.24.1. Upgrade to a more stable version of `gym` or, preferably, migrate to `gymnasium` for continued support and bug fixes.
affects: gym versions 0.24.0, 0.24.1
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'gym_notices'
The 'gym-notices' library is not installed or is not accessible in the current Python environment, often because it's a dependency of the 'gym' library that might not have been installed correctly or is missing.
fix
pip install gym-notices
UserWarning: WARN: gym.spaces.Box autodetected dtype as...
This warning, often related to the OpenAI Gym library and potentially surfaced by 'gym-notices', indicates that the data type for a `gym.spaces.Box` object was automatically inferred. While not an error, it can lead to unexpected behavior or signifies a future change in how `dtype` will be handled.
fix
Explicitly specify the `dtype` when creating `gym.spaces.Box` objects, for example: `observation_space = gym.spaces.Box(low=0.0, high=1.0, shape=(n,), dtype=np.float32)`.
gym.logger.set_level(40)
Users often encounter numerous warning messages from the 'gym' library (some of which may be issued or facilitated by 'gym-notices') and seek to suppress them to reduce console output.
fix
To suppress warnings, set the logging level for 'gym' to ERROR: `import gym
gym.logger.set_level(gym.logger.ERROR)` or using Python's standard logging: `import logging
logging.getLogger('gym').setLevel(logging.ERROR)`.
Upgrade
Version history
0.1.0latest on PyPI · released Jul 27, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
gym-notices — pip install gym-notices · libregistry