Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

'open_filename' from 'pdfminer.utils error #3832

Unanswered
kihumban asked this question in Q&A
Discussion options

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)`

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /