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

Why is pycrypto 2.6.1 needed for unstructured_inference when I try to use poetry to add unstructured_inference? #368

Open
aarontxz opened this issue Jul 11, 2024 · 1 comment

Comments

@aarontxz
Copy link

Hi, I am trying to use unstructured inference in my poetry project but seems to be unable to add unstructured_inference using poetry add unstructured_inference, as it keeps trying to install pycrypto 2.6.1, I looked up online and it seems like pycrypto is nolonger maintained and shouldtn pycryptodome be used instead?

@tcztzy
Copy link

tcztzy commented Sep 27, 2024

It seems like poetry/uv's problem, layoutparser does not specify the version of pdfplumber and both of them choose the older version.

unstructured_inference -> layoutparser -> pdfplumber-0.5.3 -> pycrypto

Currently walkaround is manually add pdfplumber to your dependency, they will resolve to the latest version and no longer require pycrypto

astral-sh/uv#6892

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