-
Notifications
You must be signed in to change notification settings - Fork 5
Error on splitting txt file using UnstructuredIO #13
Description
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.