I had following output when running the train.py file.
2023-03-05 17:18:49, INFO: Create other envs with new settings
Logging to C:\Users\Lab404\AppData\Local\Temp\openai-2023-03-05-17-18-49-452472
Creating dummy env object to get spaces
Traceback (most recent call last):
File "d:\LGR\RL\CrowdNav_DSRNN-main\CrowdNav_DSRNN-main\train.py", line 248, in main()
File "d:\LGR\RL\CrowdNav_DSRNN-main\CrowdNav_DSRNN-main\train.py", line 88, in main
envs = make_vec_envs(env_name, config.env.seed, config.training.num_processes,
File "d:\LGR\RL\CrowdNav_DSRNN-main\CrowdNav_DSRNN-main\pytorchBaselines\a2c_ppo_acktr\envs.py", line 112, in make_vec_envs
envs = ShmemVecEnv(envs, context='spawn')
File "d:\LGR\RL\CrowdNav_DSRNN-main\CrowdNav_DSRNN-main\pytorchBaselines\a2c_ppo_acktr\shmem_vec_env.py", line 37, in initdummy = env_fns[0]()
File "d:\LGR\RL\CrowdNav_DSRNN-main\CrowdNav_DSRNN-main\pytorchBaselines\a2c_ppo_acktr\envs.py", line 40, in _thunk
env = gym.make(env_id)
File "D:\downloads\PythonInstall\lib\site-packages\gym\envs\registration.py", line 669, in make
env = PassiveEnvChecker(env)
File "D:\downloads\PythonInstall\lib\site-packages\gym\wrappers\env_checker.py", line 23, in initcheck_action_space(env.action_space)
File "D:\downloads\PythonInstall\lib\site-packages\gym\utils\passive_env_checker.py", line 74, in check_space
raise AssertionError(
AssertionError: action space does not inherit from 'gym.spaces.Space', actual type: <class 'NoneType'>
Note: I change envs = ShmemVecEnv(envs, context='fork') become envs = ShmemVecEnv(envs, context='spawn') because I had an error if I stick to "fork", and source on the internet said that fork is for MacOS, and I use Windows OS.
Hi!
I had following output when running the train.py file.
2023-03-05 17:18:49, INFO: Create other envs with new settings Logging to C:\Users\Lab404\AppData\Local\Temp\openai-2023-03-05-17-18-49-452472 Creating dummy env object to get spaces Traceback (most recent call last): File "d:\LGR\RL\CrowdNav_DSRNN-main\CrowdNav_DSRNN-main\train.py", line 248, in
main()
File "d:\LGR\RL\CrowdNav_DSRNN-main\CrowdNav_DSRNN-main\train.py", line 88, in mainenvs = make_vec_envs(env_name, config.env.seed, config.training.num_processes,
File "d:\LGR\RL\CrowdNav_DSRNN-main\CrowdNav_DSRNN-main\pytorchBaselines\a2c_ppo_acktr\envs.py", line 112, in make_vec_envsenvs = ShmemVecEnv(envs, context='spawn')
File "d:\LGR\RL\CrowdNav_DSRNN-main\CrowdNav_DSRNN-main\pytorchBaselines\a2c_ppo_acktr\shmem_vec_env.py", line 37, in initdummy = env_fns[0]()
File "d:\LGR\RL\CrowdNav_DSRNN-main\CrowdNav_DSRNN-main\pytorchBaselines\a2c_ppo_acktr\envs.py", line 40, in _thunkenv = gym.make(env_id)
File "D:\downloads\PythonInstall\lib\site-packages\gym\envs\registration.py", line 669, in makeenv = PassiveEnvChecker(env)
File "D:\downloads\PythonInstall\lib\site-packages\gym\wrappers\env_checker.py", line 23, in initcheck_action_space(env.action_space)
File "D:\downloads\PythonInstall\lib\site-packages\gym\utils\passive_env_checker.py", line 74, in check_space raise AssertionError( AssertionError: action space does not inherit from 'gym.spaces.Space', actual type: <class 'NoneType'>Note: I change
envs = ShmemVecEnv(envs, context='fork')
becomeenvs = ShmemVecEnv(envs, context='spawn')
because I had an error if I stick to "fork", and source on the internet said that fork is for MacOS, and I use Windows OS.Do you have any idea on how to solve this?
Thank you!