Skip to content

bug/<short-name> ImportError: cannot import name 'PSSyntaxError' from 'pdfminer.pdfparser' #4061

@dp-0809

Description

@dp-0809

Describe the bug
pip install unstructured[all-docs]==0.11.8

Error:
Traceback (most recent call last):
from unstructured.partition.pdf import partition_pdf
from unstructured.partition.pdf_image.pdfminer_processing import (
from pdfminer.pdfparser import PSSyntaxError

currently using:
unstructured 0.11.8 pypi_0 pypi
unstructured-client 0.8.1 pypi_0 pypi
unstructured-inference 0.7.18 pypi_0 pypi
unstructured-pytesseract 0.3.13 pypi_0 pypi

I have searched the issue board, but the unstructured patch is different.
pdfminer.six 20250506 ->pdfminer.six==20240706
cause dependency error:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pdfplumber 0.11.7 requires pdfminer.six==20250506, but you have pdfminer-six 20240706 which is incompatible.

How can i solve this problem?
update unstructured to which patch?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions