chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

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

Open saikumar-123 opened this issue 1 year ago • 3 comments
trafficstars

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 Attachedimage

saikumar-123 avatar Mar 29 '24 14:03 saikumar-123

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".

dahifi avatar Mar 29 '24 15:03 dahifi

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

saikumar-123 avatar Mar 29 '24 16:03 saikumar-123

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.

dahifi avatar Mar 29 '24 18:03 dahifi