-
Notifications
You must be signed in to change notification settings - Fork 137
Closed
Description
I'm using the gym API in R running the example_agent.R file.
When I use the CartPole-v0 environment this works fine, but then I try the "FrozenLake-v0" I get an error: Error: API did not return json when I run
for (i in 1:episode_count) { ob <- env_reset(client, instance_id) for (i in 1:max_steps) { action <- env_action_space_sample(client, instance_id) results <- env_step(client, instance_id, action, render = TRUE) if (results[["done"]]) break } }
and in my WinPython Command Prompt (Python 3.6.0.1Qt5) I get the following error:
TypeError: 0 is not JSON serializable
Hope, someone can help :)
Metadata
Metadata
Assignees
Labels
No labels