You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am using LlamaParse as an extractor within a SimpleDirectoryReader with fs as an s3 bucket. What will happen is that when load_data() from LlamaParse is called, the file_path will be a PurePosixPath (because of the design of SimpleDirectoryReader). _Path = Path if is_default_fs(self.fs) else PurePosixPath
Describe the bug
I am using LlamaParse as an extractor within a SimpleDirectoryReader with fs as an s3 bucket. What will happen is that when load_data() from LlamaParse is called, the file_path will be a PurePosixPath (because of the design of SimpleDirectoryReader).
_Path = Path if is_default_fs(self.fs) else PurePosixPath
The problem is that in llama_parse\base.py line 367 we have this check
if isinstance(file_path, (str, Path, bytes, BufferedIOBase)):
It doesn't include PurePosixPath as an accepted instance so we can't load our files.
This should be an easy fix:
if isinstance(file_path, (str, Path, PurePosixPath, bytes, BufferedIOBase)):
The text was updated successfully, but these errors were encountered: