Skip to content

examples/pybullet/gym/pybullet_envs/bullet use no longer available pkg_resources #4779

@loqs

Description

@loqs

pkg_resources was removed in setuptools 82. It is imported in:

  • examples/pybullet/gym/pybullet_envs/bullet/cartpole_bullet.py
  • examples/pybullet/gym/pybullet_envs/bullet/kukaCamGymEnv.py
  • examples/pybullet/gym/pybullet_envs/bullet/kukaGymEnv.py
  • examples/pybullet/gym/pybullet_envs/bullet/kuka_diverse_object_gym_env.py
  • examples/pybullet/gym/pybullet_envs/bullet/minitaur_duck_gym_env.py
  • examples/pybullet/gym/pybullet_envs/bullet/minitaur_gym_env.py
  • examples/pybullet/gym/pybullet_envs/bullet/racecarGymEnv.py
  • examples/pybullet/gym/pybullet_envs/bullet/racecarZEDGymEnv.py
  • examples/pybullet/gym/pybullet_envs/deep_mimic/gym_env/deep_mimic_env.py
  • examples/pybullet/gym/pybullet_envs/env_bases.py
  • examples/pybullet/gym/pybullet_envs/minitaur/envs/minitaur_gym_env.py
  • examples/pybullet/gym/pybullet_envs/prediction/pybullet_sim_gym_env.py

cartpole_bullet.py and deep_mimic_env.py only import pkg_resources without using it. The other ten files all use parse_version from pkg_resources in the same way:

  if parse_version(gym.__version__) < parse_version('0.9.6'):

This can be replaced by parse from packaging.version. I can supply a pull request if that helps. If adding a dependency on packaging is not desirable then I can use a custom replacement for parse_version instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions