Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It seems that newer version depends on the older version of onnx #336

Closed
vykhovanets opened this issue Apr 16, 2024 · 4 comments
Closed

Comments

@vykhovanets
Copy link

vykhovanets commented Apr 16, 2024

MacOS 14.4.1, M3
Python 3.12.3

When I manually specify the version of onnx, which is available without compilation, I get the newest version of unstructured-inference where the onnx version wasn't hardcoded/specified. It happens to be version 0.5.19 from 1 September 2023. (I checked)

  1. I tried to do the full installation with pip install "unstructured[all-docs]" into fresh venv, and got onnx build error.
  2. I saw that there exists a newer version of onnx library and did pip install "unstructured[all-docs]" onnx==1.16.0 successfully, at the first sight.
  3. then I got an error with pytesseract.pytesseract.Error instead of unstructured_pytesseract.Error in [layout.py](https://github.com/Unstructured-IO/unstructured-inference/blob/main/unstructured_inference/inference/layout.py) at 276 line and noticed that pip installed the older versions of unstructured and unstructured-inference, and refuses to upgrade inference module without building onnx==1.14.1 from scratch.
Screenshot 2024-04-16 at 23 44 46 Screenshot 2024-04-16 at 23 46 18 Screenshot 2024-04-16 at 23 46 45 Screenshot 2024-04-16 at 23 59 39
@vykhovanets
Copy link
Author

Probably, to resolve the issue with Mac installation, we need to increase the version of ONNX again, as done in #63.

@vykhovanets
Copy link
Author

vykhovanets commented Apr 19, 2024

@scanny thank you for resolving this issue!

I am sorry to bother you, but there is another issue, which is related to versions, for this time, it is a version of unstructured-inference itself.

It is written as a dependency inside of the unstructured package link to the source and link to the note about this

Screenshot 2024-04-19 at 10 39 21

The current way to install the newest versions is the following:

uv pip install unstructured-inference==0.7.27 unstructured[all-docs]
uv pip install --upgrade unstructured

@scanny
Copy link
Contributor

scanny commented Apr 19, 2024

@vykhovanets Thanks for this, yes, I'm working on that today so it should be out by tomorrow :)

@scanny
Copy link
Contributor

scanny commented Apr 22, 2024

@vykhovanets v0.13.3 of unstructured was published last night, so this should work again now.

Closing as completed but let us know how you go :)

@scanny scanny closed this as completed Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants