Skip to content

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

Closed
@zhaolongkzz

Description

@zhaolongkzz

The problem of prng is that the gym package is updating, and prng function has been deleted.

you can fix this in code multiagent-particle-envs/multiagent/multi_discrete.py

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

and change this line with:

np_random = np.random.RandomState()
random_array = np_random.rand(self.num_discrete_space)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions