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
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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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.
All reactions