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

Rlib examples are using outdated version of Ray #125

Open
Davidmenamm opened this issue Sep 11, 2024 · 0 comments
Open

Rlib examples are using outdated version of Ray #125

Davidmenamm opened this issue Sep 11, 2024 · 0 comments

Comments

@Davidmenamm
Copy link

When I try to use "from smac.examples.rllib.env import RLlibStarCraft2Env" to run the smac environment in ray for multi-agent reinforcement learning. I get the following error.

/usr/local/lib/python3.10/dist-packages/smac/examples/rllib/init.py in
1 from smac.examples.rllib.env import RLlibStarCraft2Env
----> 2 from smac.examples.rllib.model import MaskedActionsModel
3
4 all = ["RLlibStarCraft2Env", "MaskedActionsModel"]

/usr/local/lib/python3.10/dist-packages/smac/examples/rllib/model.py in
5 import tensorflow as tf
6
----> 7 from ray.rllib.models import Model
8 from ray.rllib.models.tf.misc import normc_initializer
9

ImportError: cannot import name 'Model' from 'ray.rllib.models' (/usr/local/lib/python3.10/dist-packages/ray/rllib/models/init.py)

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

No branches or pull requests

1 participant