Skip to content

Error on splitting txt file using UnstructuredIO #13

@nekiee13

Description

@nekiee13

App is installed under Win11 in conda vEnv D:\LLM\ETL\vETL & Python3.10.0
git cloned to D:\LLM\ETL\vETL\Pyproject

From GUI
ValueError: Invalid file C:\Users\user\AppData\Local\Temp\tmpeo5yaxcb. The FileType.UNK file type is not supported in partition.

From conda prompt
Traceback (most recent call last):
File "D:\LLM\ETL\vETL\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "D:\LLM\ETL\vETL\PyProject\splitter.py", line 134, in
documents = document_loading(temp_file=file_path, loader_choice=loader_choice)
File "D:\LLM\ETL\vETL\PyProject\utils.py", line 50, in document_loading
return loader.load()
File "D:\LLM\ETL\vETL\lib\site-packages\langchain\document_loaders\unstructured.py", line 86, in load
elements = self._get_elements()
File "D:\LLM\ETL\vETL\lib\site-packages\langchain\document_loaders\unstructured.py", line 172, in _get_elements
return partition(filename=self.file_path, **self.unstructured_kwargs)
File "D:\LLM\ETL\vETL\lib\site-packages\unstructured\partition\auto.py", line 366, in partition
raise ValueError(f"{msg}. The {filetype} file type is not supported in partition.")
ValueError: Invalid file C:\Users\user\AppData\Local\Temp\tmpeo5yaxcb. The FileType.UNK file type is not supported in partition.

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