Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Reinforcement Learning works, but not the visualization #21

Open
ga74kud opened this issue Jan 15, 2020 · 2 comments
Open

Reinforcement Learning works, but not the visualization #21

ga74kud opened this issue Jan 15, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@ga74kud
Copy link

ga74kud commented Jan 15, 2020

Hi, thank you for the program. I get from the server side following Render not defined.

Render not defined for <baselines.common.vec_env.subproc_vec_env.SubprocVecEnv object at 0x7f99daea02b0> Render not defined for <baselines.common.vec_env.subproc_vec_env.SubprocVecEnv object at 0x7f99daea02b0>

I also tried a simple example that worked:

import gym import time env = gym.make('CartPole-v0') env.reset() for _ in range(1000): env.render() env.step(env.action_space.sample()) #take a random action time.sleep(0.03) env.close()

I tried several environments, not only CartPole-v0

I also tried to set the env_id on the server side
def make_env(env_id, seed, rank): def _thunk(): env = gym.make(env_id)

I hope someone can help with that problem.

best, Michael

@JesperLindberg
Copy link
Contributor

@ga74kud I got the same issue, did you ever find a solution?

@Omegastick
Copy link
Owner

Perhaps a recent version of gym removed rendering on SubProcEnvs? I'll take a look when I get time.

@Omegastick Omegastick added the bug Something isn't working label Feb 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants