Skip to content

ModuleNotFoundError: No module named 'pkg_resources' with setuptools 82.0.0+ #292

Description

@tughril

Description

vcstool 0.3.0 fails at runtime when installed in an environment with setuptools 82.0.0 or later, because pkg_resources was removed from the setuptools package in that release.

This is the breaking change following the deprecation warning reported in #269.

Error

Traceback (most recent call last):
  File ".../bin/vcs", line 4, in <module>
    from vcstool.commands.vcs import main
  File ".../vcstool/commands/vcs.py", line 3, in <module>
    from vcstool.commands.help import get_entrypoint
  File ".../vcstool/commands/help.py", line 4, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

Environment

  • vcstool: 0.3.0
  • setuptools: 82.0.1
  • Python: 3.12
  • OS: Ubuntu (GitHub Actions runner)

Steps to Reproduce

uv tool install vcstool==0.3.0  # installs setuptools 82+ as a dependency
vcs import < repos.yaml

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions