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

Missing dependency on setuptools #465

Open
MarioVilas opened this issue May 6, 2024 · 0 comments
Open

Missing dependency on setuptools #465

MarioVilas opened this issue May 6, 2024 · 0 comments

Comments

@MarioVilas
Copy link

Traceback (most recent call last):
  File "/Users/marito/Work/cacabot/example.py", line 1, in <module>
    from telegram.client import Telegram
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/telegram/client.py", line 29, in <module>
    from telegram.tdjson import TDJson
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/telegram/tdjson.py", line 8, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

I installed the module by adding python-telegram to requirements.txt, then using python3 -m pip install -r requirements.txt.

When I added setuptools to requirements.txt, it was able to import the module.

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

No branches or pull requests

1 participant