Unstructured-IO / unstructured

Open source libraries and APIs to build custom preprocessing pipelines for labeling, training, or production machine learning pipelines.
https://www.unstructured.io/
Apache License 2.0
9.25k stars 767 forks source link

bug/wong-example-file-path-in-readme: Get "No such file or directory" error by following the steps in Readme #3713

Open shaofengshi opened 1 month ago

shaofengshi commented 1 month ago

Describe the bug I follow the readme to run the example in docker container, but encountered a "No such file or directory." error.

To Reproduce Just follow the steps in README.md:

python3

>>> from unstructured.partition.pdf import partition_pdf
>>> elements = partition_pdf(filename="example-docs/layout-parser-paper-fast.pdf")

Expected behavior No error be reported.

Screenshots

image

Environment Info This is from the latest docker image(downloads.unstructured.io/unstructured-io/unstructured:latest), not my local env. The bug is a document bug, not related with code.

Additional context No; You just try it will know.

shaofengshi commented 1 month ago

I created a PR for this, please take a review: https://github.com/Unstructured-IO/unstructured/pull/3714