Find answers from the community

Updated 3 months ago

HEY guys,i get this error trying the

HEY guys,i get this error trying the llama agents example of two agents:
Plain Text
 
ImportError                               Traceback (most recent call last)
Cell In[1], line 1
----> 1 from llama_agents import (
      2     AgentService,
      3     AgentOrchestrator,
      4     ControlPlaneServer,
      5     SimpleMessageQueue,
      6 )
      8 from llama_index.core.agent import ReActAgent
      9 from llama_index.core.tools import FunctionTool

File c:\Users\admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\llama_agents\__init__.py:2
      1 from llama_agents.client import AsyncLlamaAgentsClient, LlamaAgentsClient
----> 2 from llama_agents.control_plane import ControlPlaneServer
      3 from llama_agents.launchers import LocalLauncher, ServerLauncher
      4 from llama_agents.message_consumers import CallableMessageConsumer

File c:\Users\admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\llama_agents\control_plane\__init__.py:2
      1 from llama_agents.control_plane.base import BaseControlPlane
----> 2 from llama_agents.control_plane.server import ControlPlaneServer
      4 __all__ = ["BaseControlPlane", "ControlPlaneServer"]

File c:\Users\admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\llama_agents\control_plane\server.py:23
     21 from llama_agents.message_queues.base import BaseMessageQueue, PublishCallback
...
----> 6 from llama_index.core.query_pipeline.query import RunState
      7 from llama_index.core.tools import BaseTool
      9 from llama_agents.messages.base import QueueMessage

ImportError: cannot import name 'RunState' from 'llama_index.core.query_pipeline.query' (c:\Users\admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\llama_index\core\query_pipeline\query.py)
W
a
4 comments
Try doing pip install -U llama-index once and then run this
thanks worked
seemed like i needed to update huggingface-hub first
thats why llama index didnt get updated earlier
Add a reply
Sign up and join the conversation on Discord