Skip to content

ModuleNotFoundError: no module named 'pkg_resources' (Python 3.12 venv) #45

@francoislaurent

Description

@francoislaurent

Python 3.12 no longer ships pkg_resources in venv virtual environments. See https://docs.python.org/3/whatsnew/3.12.html.

As a consequence, loading modules tramway.helper.base or tramway.analyzer.artefact fails with:

E   ModuleNotFoundError: No module named 'pkg_resources'

This was observed trying to run the unit tests (python -m pytest tests/).

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