Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setuptools to requirements #410

Open
wants to merge 1 commit into
base: 0.4.X.X
Choose a base branch
from

Conversation

MatthewScholefield
Copy link

When importing the library I consistently see the following stack trace:

Traceback (most recent call last):
  File "/home/matthew/Code/meross-auto-lighting/.venv/bin/meross-auto-lighting", line 5, in <module>
    from meross_auto_lighting import main
  File "/home/matthew/Code/meross-auto-lighting/meross_auto_lighting.py", line 8, in <module>
    from meross_iot.http_api import MerossHttpClient
  File "/home/matthew/Code/meross-auto-lighting/.venv/lib/python3.12/site-packages/meross_iot/http_api.py", line 25, in <module>
    from meross_iot.utilities.misc import current_version
  File "/home/matthew/Code/meross-auto-lighting/.venv/lib/python3.12/site-packages/meross_iot/utilities/misc.py", line 1, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Modern setuptools provides this import as specified here so I've added it to the package requirements.

This is necessary due to the `pkg_resources` import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant