robotics-rl-srl icon indicating copy to clipboard operation
robotics-rl-srl copied to clipboard

[bug report] Seed must be between 0 and 2**32 - 1; gym version too old

Open ncble opened this issue 5 years ago • 2 comments

Describe the bug

  • [1.] ValueError: Seed must be between 0 and 2**32 - 1
  • [2.] ImportError: cannot import name 'prng' (for gym>=0.11.0)

Code example The following code can reproduce the problem with the current version of origin/master: python -m environments.dataset_generator --seed=1 --name=debug

System Info gym version == 0.10.3

Solution

  • [1.] Either add line seed = seed % 2^32 or comment out the line prin.seed(seed)
  • [2.] see the link: downgrade gym to gym==0.10.3

ncble avatar May 19 '19 17:05 ncble

Hello, We would appreciate a PR that solves this issue ;)

For a possible fix, see: https://github.com/hill-a/stable-baselines/blob/master/stable_baselines/common/misc_util.py#L93

araffin avatar May 19 '19 17:05 araffin

Yes, the PR is coming soon (within one or two days). I would solve the other problem at the same time! :)

ncble avatar May 19 '19 18:05 ncble