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

Bug: Error while deploying the chat-chainlit-app #167

Closed
sreedharguda opened this issue Dec 23, 2024 · 3 comments
Closed

Bug: Error while deploying the chat-chainlit-app #167

sreedharguda opened this issue Dec 23, 2024 · 3 comments
Labels
bug Something isn't working triage

Comments

@sreedharguda
Copy link

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 sreedharguda added the bug Something isn't working label Dec 23, 2024
@brnaba-aws
Copy link
Contributor

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

@sreedharguda
Copy link
Author

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

1 similar comment
@sreedharguda
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants