agent-squad icon indicating copy to clipboard operation
agent-squad copied to clipboard

Bug: Error while deploying the chat-chainlit-app

Open sreedharguda opened this issue 1 year ago • 1 comments

Expected Behaviour

While running the chat-chainlit-app getting the below error message. I am using the python version 3.12.6 and chainlit 1.3.2

python app.py Traceback (most recent call last): File "C:xxxxxxxxxxxxxxxxxxxx\multi-agent-orchestrator\examples\chat-chainlit-app\app.py", line 2, in import chainlit as cl File "C:xxxxxxxxxxxxxxxxxxxx\multi-agent-orchestrator\examples\chat-chainlit-app\venv\Lib\site-packages\chainlit_init_.py", line 18, in from chainlit.action import Action File "C:xxxxxxxxxxxxxxxxxxxx\multi-agent-orchestrator\examples\chat-chainlit-app\venv\Lib\site-packages\chainlit\action.py", line 5, in from chainlit.telemetry import trace_event File "C:xxxxxxxxxxxxxxxxxxxx\multi-agent-orchestrator\examples\chat-chainlit-app\venv\Lib\site-packages\chainlit\telemetry.py", line 12, in from chainlit.config import config File "C:xxxxxxxxxxxxxxxxxxxx\multi-agent-orchestrator\examples\chat-chainlit-app\venv\Lib\site-packages\chainlit\config.py", line 538, in config = load_config() ^^^^^^^^^^^^^ File "C:xxxxxxxxxxxxxxxxxxxx\multi-agent-orchestrator\examples\chat-chainlit-app\venv\Lib\site-packages\chainlit\config.py", line 507, in load_config settings = load_settings() ^^^^^^^^^^^^^^^ File "C:xxxxxxxxxxxxxxxxxxxx\multi-agent-orchestrator\examples\chat-chainlit-app\venv\Lib\site-packages\chainlit\config.py", line 479, in load_settings code_settings = CodeSettings(action_callbacks={}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:xxxxxxxxxxxxxxxxxxxx\multi-agent-orchestrator\examples\chat-chainlit-app\venv\Lib\site-packages\pydantic_internal_dataclasses.py", line 121, in init s.pydantic_validator.validate_python(ArgsKwargs(args, kwargs), self_instance=s) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:xxxxxxxxxxxxxxxxxxxx\multi-agent-orchestrator\examples\chat-chainlit-app\venv\Lib\site-packages\pydantic_internal_mock_val_ser.py", line 100, in getattr raise PydanticUserError(self._error_message, code=self._code) pydantic.errors.PydanticUserError: CodeSettings is not fully defined; you should define Action, then call pydantic.dataclasses.rebuild_dataclass(CodeSettings).

Current Behaviour

Getting the error.

Code snippet

Used the code from this repo https://github.com/awslabs/multi-agent-orchestrator/tree/main/examples/chat-chainlit-app and followed the steps as well.

Possible Solution

No response

Steps to Reproduce

https://github.com/awslabs/multi-agent-orchestrator/tree/main/examples/chat-chainlit-app

sreedharguda avatar Dec 23 '24 04:12 sreedharguda

Hi @sreedharguda , Thanks for using the multi-agent orchestrator. It seems like this issue is related to pydantic version not aligned with chainlit.

We have updated our requirements.txt which should fix the issue and let you use the chainlit app. Let us know how it goes and if we can close the issue. Anthony

brnaba-aws avatar Dec 23 '24 08:12 brnaba-aws

Hi @brnaba-aws , Thank you for your help, now am able to run the code and its working as expected. Please close the issue.

sreedharguda avatar Dec 23 '24 16:12 sreedharguda

Hi @brnaba-aws , Thank you for your help, now am able to run the code and its working as expected. Please close the issue.

sreedharguda avatar Dec 23 '24 16:12 sreedharguda