Skip to content

Missing dependency pkg_resources if installed without pip #183

@skeapskeap

Description

@skeapskeap

Hi.
I just noticed that punq doesn't depend on pkg_resources explicitly. The only thing that hints at this is recommended way of installation using pip.

(.venv) username:~$ python
Python 3.8.20 (default, Sep  9 2024, 22:12:42)
[Clang 18.1.8 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import punq
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/username/.venv/lib/python3.8/site-packages/punq/__init__.py", line 27, in <module>
    from pkg_resources import DistributionNotFound
ModuleNotFoundError: No module named 'pkg_resources'

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