Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.1k stars 777 forks source link

Chainlit.cli has “IndentionError : unindent doesn’t match any outer infection level” on dataclass_json/api.py on line 141 #854

Open saikumar-123 opened 3 months ago

saikumar-123 commented 3 months ago

Describe the bug

Chainlit.cli has “IndentionError : unindent doesn’t match any outer infection level” on dataclass_json/api.py on line 143

Expected behavior Chainlit to startup on kubernetes

Screenshots Attached[]()image

dahifi commented 3 months ago

Can you verify this with 3.11? That looks like a dependency error.

A dump of installed packages would be useful here, my poetry.lock has dataclasses_json = ">=0.5.7,<0.6.0".

saikumar-123 commented 3 months ago

I was using python:3.10-slim-bookworm because of the sqlelite3 for Chromdb issue on python:3-11-slim-buster.

One thing I noticed was on poetry install on both 3.11 and 3.10 image

dahifi commented 3 months ago

Yea I recall seeing that during a docker build myself, but can't replicate with the import.

By the way, you're importing the whole module instead of the data class. Maybe try from chainlit.input_widget import InputWidget instead?

Make sure you're running most recent version of CL also. 401 is the latest.