Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

New Errors after AutoGPT Update #194

Open
MastQ opened this issue Jun 5, 2023 · 6 comments
Open

New Errors after AutoGPT Update #194

MastQ opened this issue Jun 5, 2023 · 6 comments

Comments

@MastQ
Copy link

MastQ commented Jun 5, 2023

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
Copy link

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
Copy link

ram-sh commented Jun 6, 2023

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
Copy link

derudra commented Jun 7, 2023

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
Copy link

Luxguild commented Jun 7, 2023

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
Copy link

xdien commented Jun 9, 2023

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

@n0kovo
Copy link

n0kovo commented Oct 5, 2023

Same

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants