Missing dependency on setuptools
MarioVilas opened this issue · 0 comments
MarioVilas commented
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.