Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'Bot' from 'telegram' #12

Closed
crack00r opened this issue May 7, 2023 · 2 comments
Closed

ImportError: cannot import name 'Bot' from 'telegram' #12

crack00r opened this issue May 7, 2023 · 2 comments

Comments

@crack00r
Copy link

crack00r commented May 7, 2023

C:\Users\Manuel\Desktop\GPT\Auto-GPT>run.bat
All packages are installed.
NEWS: Welcome to Auto-GPT!
NEWS: Below you'll find the latest Auto-GPT News and updates regarding features!
NEWS: If you don't wish to see this message, you can run Auto-GPT with the --skip-news flag.
NEWS:
NEWS: Website and Documentation Site 📰📖
NEWS: Check out https://agpt.co, the official news & updates site for Auto-GPT!
NEWS: The documentation also has a place here, at https://docs.agpt.co
NEWS:
NEWS: 🚀 v0.3.0 Release 🚀
NEWS: Over a week and 275 pull requests have passed since v0.2.2, and we are happy to announce
NEWS: the release of v0.3.0! From now on, we will be focusing on major improvements rather
NEWS: than bugfixes, as we feel stability has reached a reasonable level. Most remaining
NEWS: issues relate to limitations in prompt generation and the memory system, which will be
NEWS: the focus of our efforts for the next release.
NEWS:
NEWS: Highlights and notable changes in this release:
NEWS:
NEWS: Plugin support 🔌
NEWS: Auto-GPT now has support for plugins! With plugins, you can extend Auto-GPT's abilities,
NEWS: adding support for third-party services and more.
NEWS: See https://github.com/Significant-Gravitas/Auto-GPT-Plugins for instructions and available plugins.
NEWS:
NEWS: Changes to Docker configuration 🐋
NEWS: The workdir has been changed from /home/appuser to /app.
NEWS: Be sure to update any volume mounts accordingly!
NEWS:
NEWS: ⚠️ Command send_tweet is DEPRECATED, and will be removed in v0.4.0 ⚠️
NEWS: Twitter functionality (and more) is now covered by plugins, see [Plugin support 🔌]
NEWS:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\Manuel\Desktop\GPT\Auto-GPT\autogpt_main
.py", line 5, in
autogpt.cli.main()
File "C:\Users\Manuel\AppData\Roaming\Python\Python311\site-packages\click\core.py", line 1130, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Manuel\AppData\Roaming\Python\Python311\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\Manuel\AppData\Roaming\Python\Python311\site-packages\click\core.py", line 1635, in invoke
rv = super().invoke(ctx)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Manuel\AppData\Roaming\Python\Python311\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Manuel\AppData\Roaming\Python\Python311\site-packages\click\core.py", line 760, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Manuel\AppData\Roaming\Python\Python311\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Manuel\Desktop\GPT\Auto-GPT\autogpt\cli.py", line 90, in main
run_auto_gpt(
File "C:\Users\Manuel\Desktop\GPT\Auto-GPT\autogpt\main.py", line 118, in run_auto_gpt
cfg.set_plugins(scan_plugins(cfg, cfg.debug_mode))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Manuel\Desktop\GPT\Auto-GPT\autogpt\plugins.py", line 219, in scan_plugins
zipped_module = zipped_package.load_module(str(module.parent))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 301, in load_module
File "plugins\Auto-GPT-Telegram-Plugin-master.zip\Auto-GPT-Telegram-Plugin-master\src\telegram_plugin_init
.py", line 11, in
File "plugins\Auto-GPT-Telegram-Plugin-master.zip\Auto-GPT-Telegram-Plugin-master\src\telegram_plugin\telegram_chat.py", line 4, in
ImportError: cannot import name 'Bot' from 'telegram' (C:\Users\Manuel\AppData\Roaming\Python\Python311\site-packages\telegram_init
.py)
Drücken Sie eine beliebige Taste . . .

@crack00r
Copy link
Author

crack00r commented May 7, 2023

C:\Users\Manuel\Desktop\GPT\Auto-GPT>pip3 install telegram
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: telegram in c:\users\manuel\appdata\roaming\python\python311\site-packages (0.0.1)

C:\Users\Manuel\Desktop\GPT\Auto-GPT>

@Wladastic
Copy link
Owner

python -m autogpt --install-plugin-deps

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

No branches or pull requests

2 participants