karthik-codex / Autogen_GraphRAG_Ollama

Microsoft's GraphRAG + AutoGen + Ollama + Chainlit = Fully Local & Free Multi-Agent RAG Superbot
512 stars 103 forks source link

chainlit autogen error #13

Open MyraBaba opened 3 months ago

MyraBaba commented 3 months ago

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 commented 3 months ago

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

karthik-codex commented 3 months ago

Where you able to fix this?