Significant-Gravitas / Auto-GPT-Plugins

Plugins for Auto-GPT
MIT License
3.9k stars 564 forks source link

Auto-gpt plugins Telegram ImportError: cannot import name 'TimedOut' from 'telegram.error' #196

Open Luxguild opened 1 year ago

Luxguild commented 1 year ago

Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/Users/gcg/gpt/v2/Auto-GPT/autogpt/main.py", line 5, in autogpt.cli.main() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1635, in invoke rv = super().invoke(ctx) ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 760, in invoke return __callback(args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/decorators.py", line 26, in new_func return f(get_current_context(), args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/gcg/gpt/v2/Auto-GPT/autogpt/cli.py", line 96, in main run_auto_gpt( File "/Users/gcg/gpt/v2/Auto-GPT/autogpt/main.py", line 142, in run_auto_gpt cfg.set_plugins(scan_plugins(cfg, cfg.debug_mode)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/gcg/gpt/v2/Auto-GPT/autogpt/plugins.py", line 227, in scan_plugins zipped_module = zipped_package.load_module(str(module.parent)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 301, in load_module File "plugins/Auto-GPT-Plugins.zip/Auto-GPT-Plugins-master/src/autogpt_plugins/telegram/init.py", line 8, in File "plugins/Auto-GPT-Plugins.zip/Auto-GPT-Plugins-master/src/autogpt_plugins/telegram/telegram_chat.py", line 7, in ImportError: cannot import name 'TimedOut' from 'telegram.error' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/telegram/error.py)

Wladastic commented 1 year ago

seems like the wrong telegram package is installed, which one do you have installed?