This exception doesn't really specify which field is actually too short, nor where the field is discovered, just that it fails the pydantic check.
Any chance there's a way to either improve the info given or get info on how to work around this?
Traceback (most recent call last): File "/usr/tmp/run_sql.py", line 582, in <module> app() ~~~^^ File "/root/.cache/uv/environments-v2/run-sql-6e1746e37f829d89/lib/python3.14/site-packages/cyclopts/core.py", line 1865, in __call__ result = _run_maybe_async_command(command, bound, resolved_backend) File "/root/.cache/uv/environments-v2/run-sql-6e1746e37f829d89/lib/python3.14/site-packages/cyclopts/_run.py", line 50, in _run_maybe_async_command return command(*bound.args, **bound.kwargs) File "/usr/tmp/run_sql.py", line 577, in main lblprof.stop_tracing() ~~~~~~~~~~~~~~~~~~~~^^ File "/root/.cache/uv/environments-v2/run-sql-6e1746e37f829d89/lib/python3.14/site-packages/lblprof/__init__.py", line 30, in stop_tracing tracer.tree.build_tree() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/root/.cache/uv/environments-v2/run-sql-6e1746e37f829d89/lib/python3.14/site-packages/lblprof/line_stats_tree.py", line 69, in build_tree self.events_index[event_key] = LineStats( ~~~~~~~~~^ id=event["id"], ^^^^^^^^^^^^^^^ ...<6 lines>... source=source, ^^^^^^^^^^^^^^ ) ^ File "/root/.cache/uv/environments-v2/run-sql-6e1746e37f829d89/lib/python3.14/site-packages/pydantic/main.py", line 250, in __init__ validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) pydantic_core._pydantic_core.ValidationError: 1 validation error for LineStats file_name String should have at least 1 character [type=string_too_short, input_value='', input_type=str] For further information visit https://errors.pydantic.dev/2.12/v/string_too_short
Thanks
This exception doesn't really specify which field is actually too short, nor where the field is discovered, just that it fails the pydantic check.
Any chance there's a way to either improve the info given or get info on how to work around this?
Traceback (most recent call last): File "/usr/tmp/run_sql.py", line 582, in <module> app() ~~~^^ File "/root/.cache/uv/environments-v2/run-sql-6e1746e37f829d89/lib/python3.14/site-packages/cyclopts/core.py", line 1865, in __call__ result = _run_maybe_async_command(command, bound, resolved_backend) File "/root/.cache/uv/environments-v2/run-sql-6e1746e37f829d89/lib/python3.14/site-packages/cyclopts/_run.py", line 50, in _run_maybe_async_command return command(*bound.args, **bound.kwargs) File "/usr/tmp/run_sql.py", line 577, in main lblprof.stop_tracing() ~~~~~~~~~~~~~~~~~~~~^^ File "/root/.cache/uv/environments-v2/run-sql-6e1746e37f829d89/lib/python3.14/site-packages/lblprof/__init__.py", line 30, in stop_tracing tracer.tree.build_tree() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/root/.cache/uv/environments-v2/run-sql-6e1746e37f829d89/lib/python3.14/site-packages/lblprof/line_stats_tree.py", line 69, in build_tree self.events_index[event_key] = LineStats( ~~~~~~~~~^ id=event["id"], ^^^^^^^^^^^^^^^ ...<6 lines>... source=source, ^^^^^^^^^^^^^^ ) ^ File "/root/.cache/uv/environments-v2/run-sql-6e1746e37f829d89/lib/python3.14/site-packages/pydantic/main.py", line 250, in __init__ validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) pydantic_core._pydantic_core.ValidationError: 1 validation error for LineStats file_name String should have at least 1 character [type=string_too_short, input_value='', input_type=str] For further information visit https://errors.pydantic.dev/2.12/v/string_too_shortThanks