-
Notifications
You must be signed in to change notification settings - Fork 378
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
AttributeError: 'NoneType' object has no attribute 'shape' when running simple_rl_train.py - Carla #837
Comments
This was fixed by switching of shared_memory in subprocess_env_manager.py. However now I am getting this:
|
There are 2 possible methods to figure out this problem:
|
For method 2, I already tried making shared_memory=False in the subprocess_env_manager and the error I am sharing is after doing that. For method 1, I see its already defined in the 'simple_carla_env.py' file: `
` |
for method 1, maybe you should check why |
Description:
When running simple_rl_train.py, I encounter an error where the environment (Carla) seems to attempt a reset multiple times, causing an AttributeError due to obs_space being None. This happens after the environment appears to initialize successfully.
Error Traceback:
Setup Details:
DI-engine: 0.4
DI-drive: 0.3.4
Gym: 0.20.0
Carla: 0.9.10
Python: 3.7.16
Steps to Reproduce:
Run the command python simple_rl_train.py.
The environment initializes and registers, and the simulation begins is reset.
After resetting, the environment unexpectedly attempts another reset.
The program throws an AttributeError in subprocess_env_manager.py due to obs_space being None.
The text was updated successfully, but these errors were encountered: