openai / roboschool

DEPRECATED: Open-source software for robot simulation, integrated with OpenAI Gym.
Other
2.13k stars 488 forks source link

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

Open Daiiszuki opened 2 years ago

Daiiszuki commented 2 years ago

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 commented 2 years ago

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