Find answers from the community

Updated 3 months ago

I m trying to use the

I'm trying to use the SImpleDIrectoryREader to read ta directory of pptx files, but I was getting the OSError: cannot find loader for this WMF file. WOndering what's the fastest way for me to bypass the error to just skip the file. I think the error happens because I have images in the files that can't be extracted.
L
1 comment
hmmm ya, Pillow doesn't support opening WMF files

The only way I can see to bypass this is to set caption_images=False -- If you know the file, you can read according to filename so that you don't have to disable this for all slides

Otherwise, this would also be an easy PR to make on llamahub

https://github.com/emptycrown/llama-hub/blob/77b0e7e20c5a3031cf79588dec66b9cfa4673fce/llama_hub/file/pptx/base.py#L96
Add a reply
Sign up and join the conversation on Discord