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

[Error] value error by run examples/rllib/run_ppo.py #23

Open
TongsYu opened this issue Jun 2, 2023 · 2 comments
Open

[Error] value error by run examples/rllib/run_ppo.py #23

TongsYu opened this issue Jun 2, 2023 · 2 comments

Comments

@TongsYu
Copy link

TongsYu commented Jun 2, 2023

Hello, thank you for your contribution of rllib version.
When I run run_ppo.py and run_qmix.py, there is a Value Error as below

(RolloutWorker pid=3950203) File "../python3.9/site-packages/ray/rllib/evaluation/rollout_worker.py", line 682, in init
(RolloutWorker pid=3950203) self.policy_dict, self.is_policy_to_train = self.config.get_multi_agent_setup(
(RolloutWorker pid=3950203) File "../python3.9/site-packages/ray/rllib/algorithms/algorithm_config.py", line 2728, in get_multi_agent_setup
(RolloutWorker pid=3950203) raise ValueError(
(RolloutWorker pid=3950203) ValueError: observation_space not provided in PolicySpec for default_policy and env does not have an observation space OR no spaces received from other workers' env(s) OR no observation_space specified in config!
ValueError: observation_space not provided in PolicySpec for default_policy and env does not have an observation space OR no spaces received from other workers' env(s) OR no observation_space specified in config!

while my tensorflow version is 2.12, ray version is 2.4.0, python version is 3.9

Waiting for you answer, thx

@benellis3
Copy link
Collaborator

The RLlib example hasn't been tested and so likely doesn't work. I am going to do some maintenance later this week though when maybe I will have time to fix this.

@TongsYu
Copy link
Author

TongsYu commented Jul 30, 2023

The RLlib example hasn't been tested and so likely doesn't work. I am going to do some maintenance later this week though when maybe I will have time to fix this.

Thank you, looking forward to your reply.

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

2 participants