Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ncble opened this issue May 19, 2019 · 2 comments
Open
Labels
bug Something isn't working

Comments

@ncble
Copy link
Collaborator

ncble commented May 19, 2019

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
@araffin araffin added the bug Something isn't working label May 19, 2019
@araffin
Copy link
Owner

araffin commented May 19, 2019

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

@ncble
Copy link
Collaborator Author

ncble commented May 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants