Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix: ImportError: cannot import name 'prng' #54

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
Loading
from

Conversation

zhaolongkzz
Copy link

#53

Change a random function to the new gym, and delete prng function.

@veds12
Copy link

veds12 commented Jul 9, 2020

@zhaolongkzz why has this PR not been merged yet? I encountered the same problem. Are there any other changes that need to be made?

@zhaolongkzz
Copy link
Author

@veds12 you can install gym==0.10.5 or modify code like:
in code multiagent-particle-envs/multiagent/multi_discrete.py

import gym
# from gym.spaces import prng             # prng has been canceled

# and change:
random_array = np.random.RandomState().rand(self.num_discrete_space)

@veds12
Copy link

veds12 commented Jul 9, 2020

Ya I figured that out from one of the issues. But why not merge this?

@zhaolongkzz
Copy link
Author

@veds12 maybe nobody updates this repository

@YanjieZe
Copy link

This helps.

@Weixw99
Copy link

Weixw99 commented Nov 16, 2022

good job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.