#125·opendrop

ModuleNotFoundError: No module named 'pkg_resources'

Author: andreasabelCreated Jan 29, 2025Updated Jul 27, 2025
$ opendrop find
Traceback (most recent call last):
  File "/Users/abel/.local/bin/opendrop", line 5, in <module>
    from opendrop.cli import main
  File "/Users/abel/.local/pipx/venvs/opendrop/lib/python3.13/site-packages/opendrop/cli.py", line 29, in <module>
    from .config import AirDropConfig, AirDropReceiverFlags
  File "/Users/abel/.local/pipx/venvs/opendrop/lib/python3.13/site-packages/opendrop/config.py", line 27, in <module>
    from pkg_resources import resource_filename
ModuleNotFoundError: No module named 'pkg_resources'

Seems like opendrop does not work anymore with recent Python (I have 3.13.1). Here is an issue saying that pkg_resources is deprecated and has been removed from the standard library:

If there are additional prerequisites needed not mentioned in your README, it would be good to add them there.