microsoft/TextWorld

[Gym] - UserWarning (obs returned by the `step()` method is not within the observation space)

ai-nikolai opened this issue · 2 comments

When running textworld + gym the following UserWarning is emitted: (when typing help)

lib/python3.9/site-packages/gym/utils/passive_env_checker.py:167: UserWarning: WARN: The obs returned by the `step()` method is not within the observation space with exception: 
  logger.warn(f"{pre} is not within the observation space with exception: {e}")

Software Versions:

  1. textworld==1.5.4
  2. numpy==1.26.2
  3. gym==0.25.2
  4. gym-notices==0.0.8

Unless you are planning to use off-the-shelf RL algorithm (e.g., baselines), you can safely ignore those warnings.

Dropping the gym dependency.
Fixed by #341