Skip to content

chat2plot.py", line 237, in _parse_response config = self._target_schema.parse_obj(json_data) #8

@kishoreganth

Description

@kishoreganth

config = self._target_schema.parse_obj(json_data)
File "pydantic\main.py", line 526, in pydantic.main.BaseModel.parse_obj
File "pydantic\main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for PlotConfig
x -> time_unit
value is not a valid enumeration member; permitted: 'year', 'month', 'week', 'quarter', 'day' (type=type_error.enum; enum_values=[<TimeUnit.YEAR: 'year'>, <TimeUnit.MONTH: 'month'>, <TimeUnit.WEEK: 'week'>, <TimeUnit.QUARTER: 'quarter'>, <TimeUnit.DAY: 'day'>])

This is the error I'm getting when I install chat2plot library. Please help with resolving the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions