Skip to content

error in running over the provided or custom data set #4

@MrNeo01

Description

@MrNeo01

Hello,
I encountered an issue while running the preprocessing pipeline where a TypeError is raised due to output_dir being None. It appears that _generate_visualizations does not validate output_dir before passing it to Path().

I tried with both the provided dataset and a custom path to my own dataset. I tried to solve the error by editing where the output directory was defined, but again I encountered the error regarding the output_dir.
Error Traceback:

TypeError: argument should be a str or an os.PathLike object where fspath returns a str, not 'NoneType'

File ".../agent_graph.py", line 52, in _preprocess_node
result = self.preprocess_agent.run(state["validation_data"])

File ".../preprocess_agent.py", line 193, in run
return self.process(data, output_dir)

File ".../preprocess_agent.py", line 155, in process
visualizations = self._generate_visualizations(cleaned_data, output_dir)

File ".../preprocess_agent.py", line 650, in _generate_visualizations
output_path = Path(output_dir)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions