Observation_space not provided in PolicySpec

The issues is that the parameter name for the create_env function is env_config. You are using the name gymconfig now perhaps there is a variable with that name in a scope accessible from env_creator in which case it will work. But, you would be using a free variable that may or may not exist. If you want to use gymconfig then change the function to be: def env_creator(gymconfig):

1 Like