Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension format not accepted in upper case #79

Open
ldemarchis opened this issue Jan 16, 2025 · 0 comments
Open

Extension format not accepted in upper case #79

ldemarchis opened this issue Jan 16, 2025 · 0 comments
Assignees
Labels
fixed Fixed but not Merged

Comments

@ldemarchis
Copy link

When loading a .PDF file, using the split/embed functionality, it is not accepted by the sandbox. Here's a code snippet example:

2025-Jan-16 13:48:36 - INFO - (modules.split): Writing Local File /tmp/tmpqesssar8/William Shakespeare.PDF
2025-Jan-16 13:48:36 - INFO - (modules.split): Loading Agatha Christie.PDF (145201 bytes)
2025-Jan-16 13:48:36 - ERROR - (modules.split): Un-supported file extension: PDF
2025-Jan-16 13:48:36 - ERROR - (chunk_embed): Operation Failed: cannot access local variable 'loader' where it is not associated with a value
Traceback (most recent call last):
File "/opt/oracle/home/oaim-sandbox/app/src/content/split_embed.py", line 406, in main
split_docos, _ = split.load_and_split_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/oracle/home/oaim-sandbox/app/src/modules/split.py", line 171, in load_and_split_documents
loaded_doc = loader.load()
^^^^^^
UnboundLocalError: cannot access local variable 'loader' where it is not associated with a value

To solve

@gotsysdba gotsysdba self-assigned this Jan 17, 2025
gotsysdba added a commit that referenced this issue Jan 17, 2025
@gotsysdba gotsysdba added the fixed Fixed but not Merged label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed Fixed but not Merged
Projects
None yet
Development

No branches or pull requests

2 participants