utiasDSL / gym-pybullet-drones

PyBullet Gymnasium environments for single and multi-agent reinforcement learning of quadcopter control
https://utiasDSL.github.io/gym-pybullet-drones/
MIT License
1.22k stars 357 forks source link

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

Open RibhavOjha opened 1 year ago

RibhavOjha commented 1 year ago

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:

JacopoPan commented 1 year ago

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