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

chainlit autogen error #13

Open
MyraBaba opened this issue Jul 31, 2024 · 2 comments
Open

chainlit autogen error #13

MyraBaba opened this issue Jul 31, 2024 · 2 comments

Comments

@MyraBaba
Copy link

2024-07-31 16:37:53 - Loaded .env file
Traceback (most recent call last):
File "/home/redel/.local/bin/chainlit", line 8, in
sys.exit(cli())
File "/home/redel/.local/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/redel/.local/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/redel/.local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/redel/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/redel/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/redel/.local/lib/python3.10/site-packages/chainlit/cli/init.py", line 201, in chainlit_run
run_chainlit(target)
File "/home/redel/.local/lib/python3.10/site-packages/chainlit/cli/init.py", line 66, in run_chainlit
load_module(config.run.module_name)
File "/home/redel/.local/lib/python3.10/site-packages/chainlit/config.py", line 419, in load_module
spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/redel/Projects/autogen_graphRAG/appUI.py", line 8, in
from autogen import AssistantAgent, UserProxyAgent
ImportError: cannot import name 'AssistantAgent' from 'autogen' (/home/redel/.local/lib/python3.10/site-packages/autogen/init.py)

@karthik-codex
Copy link
Owner

Try reinstalling autogen. Use "pip install pyautogen". You may have used pip install autogen instead. Make sure you are the correct environment.

@karthik-codex
Copy link
Owner

Where you able to fix this?

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