-
Notifications
You must be signed in to change notification settings - Fork 1.1k
-
I am getting the following error message when I import or try to use the "partition_pdf". I am running unstructured locally in docker. I am using python 3.12. Any help will be appreciated.
`---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 from unstructured.partition.pdf import partition_pdf
File /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/unstructured/partition/pdf.py:16
14 from pdfminer import psparser
15 from pdfminer.layout import LTContainer, LTImage, LTItem, LTTextBox
---> 16 from pdfminer.utils import open_filename
17 from pi_heif import register_heif_opener
18 from PIL import Image as PILImage
ImportError: cannot import name 'open_filename' from 'pdfminer.utils' (/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pdfminer/utils.py)`
Beta Was this translation helpful? Give feedback.