Farama-Foundation / Arcade-Learning-Environment

The Arcade Learning Environment (ALE) -- a platform for AI research.
GNU General Public License v2.0
2.12k stars 420 forks source link

Bizarre warnings #463

Closed slerman12 closed 1 year ago

slerman12 commented 2 years ago

Hi, I'm getting the following bizarre warnings on a freshly installed Conda env of Atari and gym. Running on M1 MacBook.

First,

/lib/python3.8/site-packages/gym/envs/registration.py:423: UserWarning: WARN: Custom namespaceALEis being overridden by namespaceALE. If you are developing a plugin you shouldn't specify a namespace inregistercalls. The namespace is specified through the entry point package metadata.

And second,

/lib/python3.8/site-packages/gym/utils/env_checker.py:137: UserWarning: WARN: Your observation has an unconventional shape (neither an image, nor a 1D vector). We recommend you to flatten the observation to have only a 1D vector or use a custom policy to properly process the data. logger.warn(

JesseFarebro commented 2 years ago

Hi @slerman12, the first warning can be safely ignored. There is something in your environment that might be non-standard. For example, do you have the ALE in your current path or PYTHONPATH when you already have the wheel installed via conda? Are you using a local copy of Gym in editable mode?

Somehow the ALE environments are getting registered twice and hence the warning about overriding the namespace.

RE: the second warning, do you get this upon importing Gym? As far as I know we comply with the Gym environment checker. I'll have to check this again with the latest version and I plan on making a release soon so if we somehow fell out of compliance then I'll make the necessary changes.