Significant-Gravitas / Auto-GPT-Plugins

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

New Errors after AutoGPT Update #194

Open MastQ opened 1 year ago

MastQ commented 1 year ago

Firstly thank you for developing this code, it has lot of potential for traders. I am getting the error below can you help me resolvve it please. It was working fine yesterdat Thank you and sorry for troubling you if i am getting this error due to an amterut mistake.

WARNING: Plugin AutoGPTMetaTraderPlugin found. But not in the allowlist... Load? (y/n): y Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Auto-GPT\autogpt__main.py", line 5, in autogpt.cli.main() File "C:\Users\alpha\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1130, in call return self.main(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\alpha\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1055, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "C:\Users\alpha\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1635, in invoke rv = super().invoke(ctx) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\alpha\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\alpha\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 760, in invoke return callback(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\alpha\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\decorators.py", line 26, in new_func return f(get_current_context(), *args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Auto-GPT\autogpt\cli.py", line 96, in main run_auto_gpt( File "C:\Auto-GPT\autogpt\main.py", line 142, in run_auto_gpt cfg.set_plugins(scan_plugins(cfg, cfg.debug_mode)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Auto-GPT\autogpt\plugins.py", line 238, in scan_plugins loaded_plugins.append(a_module()) ^^^^^^^^^^ File "C:\Users\alpha\AppData\Local\Programs\Python\Python311\Lib\site-packages\abstract_singleton__init.py", line 14, in call__ cls._instances[cls] = super().call(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Can't instantiate abstract class AutoGPTMetaTraderPlugin with abstract methods can_handle_report, can_handle_text_embedding, can_handle_user_input, handle_text_embedding, report, user_input

AaronGoldsmith1 commented 1 year ago

Im getting a similar error when trying to run the install script:

TypeError: Can't instantiate abstract class AutoGPTTelegram with abstract methods can_handle_text_embedding, handle_text_embedding

ram-sh commented 1 year ago

same here, .env is configured well, if I set ALLOWLISTED_PLUGINS=AutoGPTTelegram then I get the error immediately after the NEWS part finished loading:

Traceback (most recent call last): File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/workspace/Auto-GPT/autogpt/__main__.py", line 5, in <module> autogpt.cli.main() File "/home/vscode/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/home/vscode/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/home/vscode/.local/lib/python3.10/site-packages/click/core.py", line 1635, in invoke rv = super().invoke(ctx) File "/home/vscode/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/vscode/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/home/vscode/.local/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func return f(get_current_context(), *args, **kwargs) File "/workspace/Auto-GPT/autogpt/cli.py", line 96, in main run_auto_gpt( File "/workspace/Auto-GPT/autogpt/main.py", line 142, in run_auto_gpt cfg.set_plugins(scan_plugins(cfg, cfg.debug_mode)) File "/workspace/Auto-GPT/autogpt/plugins.py", line 238, in scan_plugins loaded_plugins.append(a_module()) File "/home/vscode/.local/lib/python3.10/site-packages/abstract_singleton/__init__.py", line 14, in __call__ cls._instances[cls] = super().__call__(*args, **kwargs) TypeError: Can't instantiate abstract class AutoGPTTelegram with abstract methods can_handle_text_embedding, handle_text_embedding Press any key to continue...

derudra commented 1 year ago

I also get a similiar erroe when trying Telegram plugin

TypeError: Can't instantiate abstract class AutoGPTTelegram with abstract methods can_handle_text_embedding, handle_text_embedding

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)

xdien commented 1 year ago

I also have the same problem, is there any workaround?

n0kovo commented 10 months ago

Same