Wladastic/Auto-GPT-Telegram-Plugin

Error when run in docker

nosovk opened this issue · 4 comments

nosovk commented
  File "plugins/Auto-GPT-Telegram-Plugin.zip/src/telegram_plugin/__init__.py", line 10, in <module>
  File "plugins/Auto-GPT-Telegram-Plugin.zip/src/telegram_plugin/telegram_chat.py", line 4, in <module>
ModuleNotFoundError: No module named 'telegram'

docker was run via:

docker compose run --rm auto-gpt --install-plugin-deps

it seems that --install-plugin-deps not compatible with plugin

image

Thats an issue with autogpt itself, there are a few prs open that will fix it

nosovk commented

if you mean that PR: Significant-Gravitas/AutoGPT#4151
then it will not help, because I was calling --install-plugin-deps already

Then go to your folder inside docker and install with pip install python-telegram-bot

I just got to check, apparently sometimes the plugin requirements cannot be installed on windows, even with docker.
I just got to reproduce your error and I think it was also fixed just now on auto-gpt, just pull the latest version for both.
If it doesn't help, login to you docker, go to app or the autogpt folder you configured and run:
pip uninstall python-telegram-bot telegram
pip install python-telegram-bot

For some reason it installs "telegram" which is the wrong package, as it doesn't contain telegram.ext packages.