This issue does not occur with Gym version 0.24.0. The Gym changelog of version 0.24.1 mentions a change to the environment checker that might be the reason for this problem:
Replaced the environment checker introduced in V24, such that the environment checker will not call step and reset during make. This new version is a wrapper that will observe the data that step and reset returns on their first call and check the data against the environment checker.
As far as I understood it, Veins-Gym initializes the observation and action spaces after communicating with the Veins simulator for the first time, which happens when calling the reset() function. This method might no longer work for newer Gym versions.
It is possible to work around this problem by disabling the environment checker in the gym.make() command like this:
Hi, when trying to use Veins-Gym with Gym version 0.24.1, I get the following error message:
This occurs when calling
right after registering Veins-Gym as an environment using:
This issue does not occur with Gym version 0.24.0. The Gym changelog of version 0.24.1 mentions a change to the environment checker that might be the reason for this problem:
As far as I understood it, Veins-Gym initializes the observation and action spaces after communicating with the Veins simulator for the first time, which happens when calling the reset() function. This method might no longer work for newer Gym versions.
It is possible to work around this problem by disabling the environment checker in the gym.make() command like this:
Best regards, Daniel