opendrop icon indicating copy to clipboard operation
opendrop copied to clipboard

ModuleNotFoundError: No module named 'pkg_resources'

Open andreasabel opened this issue 9 months ago • 1 comments

$ 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:

  • https://github.com/mu-editor/mu/issues/2485

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

andreasabel avatar Jan 29 '25 08:01 andreasabel