Auto-GPT-Plugins icon indicating copy to clipboard operation
Auto-GPT-Plugins copied to clipboard

New Errors after AutoGPT Update

Open MastQ opened this issue 1 year ago • 6 comments

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

MastQ avatar Jun 05 '23 20:06 MastQ

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

AaronGoldsmith1 avatar Jun 06 '23 06:06 AaronGoldsmith1

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...

ram-sh avatar Jun 06 '23 07:06 ram-sh

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

derudra avatar Jun 07 '23 12:06 derudra

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)

Luxguild avatar Jun 07 '23 17:06 Luxguild

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

xdien avatar Jun 09 '23 15:06 xdien

Same

n0kovo avatar Oct 05 '23 18:10 n0kovo