Skip to content
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

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

Open
RibhavOjha opened this issue Aug 22, 2023 · 1 comment
Labels
question Further information is requested

Comments

@RibhavOjha
Copy link

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)
@JacopoPan JacopoPan added the question Further information is requested label Sep 2, 2023
@JacopoPan
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants