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

AttributeError: 'EntryPoints' object has no attribute 'get' #214

Open
Daiiszuki opened this issue Oct 9, 2022 · 1 comment
Open

AttributeError: 'EntryPoints' object has no attribute 'get' #214

Daiiszuki opened this issue Oct 9, 2022 · 1 comment

Comments

@Daiiszuki
Copy link

Environment: Google colab/Linux
Restarting the runtime soles this, but when reinstalled, I get
AttributeError: 'EntryPoints' object has no attribute 'get'

What are possible reasons for this behavior?

----> 1 import gym

2 frames
/usr/local/lib/python3.7/dist-packages/gym/__init__.py in <module>
     11 )
     12 from gym.spaces import Space
---> 13 from gym.envs import make, spec, register
     14 from gym import logger
     15 from gym import vector

/usr/local/lib/python3.7/dist-packages/gym/envs/__init__.py in <module>
      8 
      9 # Hook to load plugins from entry points
---> 10 _load_env_plugins()
     11 
     12 

/usr/local/lib/python3.7/dist-packages/gym/envs/registration.py in load_env_plugins(entry_point)
    248 def load_env_plugins(entry_point="gym.envs"):
    249     # Load third-party environments
--> 250     for plugin in metadata.entry_points().get(entry_point, []):
    251         # Python 3.8 doesn't support plugin.module, plugin.attr
    252         # So we'll have to try and parse this ourselves

AttributeError: 'EntryPoints' object has no attribute 'get'
@TheCrazyT
Copy link

TheCrazyT commented Oct 10, 2022

Your installed importlib-metadata package is too new for this project.

See: https://stackoverflow.com/questions/73929564/entrypoints-object-has-no-attribute-get-digital-ocean

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

No branches or pull requests

2 participants