orenlab / pytmbot

Versatile Telegram bot designed for managing Docker containers, monitoring server status, and extending its functionality through a modular plugin system
https://orenlab.github.io/pytmbot/
MIT License
8 stars 2 forks source link

No module named 'click' in requirements.txt #20

Closed AsdertyTreds closed 6 months ago

AsdertyTreds commented 6 months ago

~/dev/pytmbot0$ python setup_bot.py Traceback (most recent call last): File "/home/u1117/dev/pytmbot0/setup_bot.py", line 9, in import click ModuleNotFoundError: No module named 'click'

add click to requirements.txt

orenlab commented 6 months ago

Hi, @AsdertyTreds!

The dependencies for the bot settings script are listed in a separate file. This file is located in the ./bot_cli directory and is named requirements.txt. This is done to ensure that only the necessary dependencies are installed in the Docker container, as not all dependencies are required for the normal operation of the bot.

The installation instructions account for this by specifying which dependencies should be installed

Pls try run it, before run setup_bot.py:

python -m venv .venv
source ~/pytmbot/.venv/bin/activate
pip install -r ./bot_cli/requirements.txt
AsdertyTreds commented 6 months ago

Thank you I was inattentive