gym
gym copied to clipboard
[Bug Report] Error message after seeding with a non-int does not show incorrect seed type
Description
If the seed
argument you pass to env.reset(seed=seed)
is not an integer, the raised error is uninformative as it only includes the seed value not the seed type.
Code example
import numpy as np
import gym
rng = np.random.default_rng()
seed = rng.integers(2**32)
env = gym.make("MountainCarContinuous-v0")
env.reset(seed=seed)
raises
gym.error.Error: Seed must be a non-negative integer or omitted, not 1407292551
System Info gym version 0.26.2, installed via pip
Hey, we just launched gymnasium, a fork of Gym by the maintainers of Gym for the past 18 months where all maintenance and improvements will happen moving forward. Could you please move this over to the new repo?
If you'd like to read more about the story behind the backstory behind this and our plans going forward, click here.