gym-pybullet-drones icon indicating copy to clipboard operation
gym-pybullet-drones copied to clipboard

singleagent.py: user warning. Recommends transition from Open AI gym env to gymnasium env

Open RibhavOjha opened this issue 1 year ago • 1 comments

Hi I get the following warning:

UserWarning: You provided an OpenAI Gym environment. We strongly recommend transitioning to Gymnasium environments. Stable-Baselines3 is automatically wrapping your environments in a compatibility layer, which could potentially cause issues.

I am aware that support for Gym has been discontinued, and they recommend using the gymnasium instead, but how is it specifically impacting gym-pybullet-drones?

Can I please get any help regarding this? I think this warning is causing further errors in the code in singleagent.py.

TypeError: empty() received an invalid combination of arguments - got (tuple, dtype=NoneType, device=NoneType), but expected one of:

  • (tuple of ints size, *, tuple of names names, torch.memory_format memory_format, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
  • (tuple of ints size, *, torch.memory_format memory_format, Tensor out, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)

RibhavOjha avatar Aug 22 '23 12:08 RibhavOjha

Which branch/example are you getting this warning from? (See #169 #168)

JacopoPan avatar Sep 02 '23 11:09 JacopoPan