Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ModuleNotFoundError: No module named 'pkg_resources' #7

@bbobrov

Description

@bbobrov
$ docker-image-patch <...>
Traceback (most recent call last):
  File "/sapmnt/home/i545462/src/keystone/.venv/bin/docker-image-patch", line 3, in <module>
    from docker_image_patcher.docker_image_patch import main
  File "/sapmnt/home/i545462/src/keystone/.venv/lib/python3.12/site-packages/docker_image_patcher/docker_image_patch.py", line 27, in <module>
    import fs.tempfs
  File "/sapmnt/home/i545462/src/keystone/.venv/lib/python3.12/site-packages/fs/__init__.py", line 4, in <module>
    __import__("pkg_resources").declare_namespace(__name__)  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'pkg_resources'

Beginning Feb 8th, 2026 with setuptools>=82, pkg_resources has been removed - pypa/setuptools#5007

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