-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
Unable to pip-compile textract #1824
Comments
Couldn't confirm locally. Could you please follow the issue template for the bug report? |
Thanks for looking @atugushev I wasn't sure which of the two template options to follow. This is done. |
Successfully compiled on:
pip-compile
|
Seems to be related to _disutils_hack, but I have tried updating setuptools and saw no change:
|
Executing |
Thanks everyone for your patience and guidance. I believe my local issue was solved by uninstalling / reinstalling pip:
|
Actually I am getting the same error as I was with
Yields "ERROR: Failed building wheel for textract". |
Is the problem worked around if you have wheel installed first? |
It doesn't seem to make a difference whether wheel is installed first. |
Thanks, I reproduced in a python:3.9 container, and could do so reliably by alternating runs of
And it syncs without issue if I Looking over at pypa/wheel#520, it seems
whereas textract uses it with |
I tried uninstalling wheel and then running |
Yeah, here's what I did: $ podman run -it --rm --net=host docker.io/library/python:3.9 bash
root@pop-os:/# python -m venv venv
root@pop-os:/# . ./venv/bin/activate
(venv) root@pop-os:/# pip install -U pip pip-tools 'wheel<0.40.0'
(venv) root@pop-os:/# pip list
Package Version
--------------- -------
build 0.10.0
click 8.1.3
packaging 23.0
pip 23.0.1
pip-tools 6.12.3
pyproject_hooks 1.0.0
setuptools 58.1.0
tomli 2.0.1
wheel 0.38.4
(venv) root@pop-os:/# echo 'textract==1.6.4' >requirements.in
(venv) root@pop-os:/# pip-compile
(venv) root@pop-os:/# pip-sync
(venv) root@pop-os:/# pip-sync /dev/null
(venv) root@pop-os:/# rm requirements.txt
(venv) root@pop-os:/# pip-compile --resolver=backtracking
(venv) root@pop-os:/# pip-sync That all works fine. This seems to be an issue of textract using an invalid requirement, and |
Thank you so much. I'm still working to get crystal clear on which step you listed above makes this work correctly in my environment. Even after using Python for so long apparently I have a lot to learn about packaging, setuptools, and wheel. |
Welcome to the Python Packaging world ^^ |
I think since this is down to a bad version specifier in textract, and an issue is now up in their tracker (thanks @seankfh), we can close this here. |
I'm unable to pip-compile textract (see error below). Is there anything I can do to pass textract through to the output file without processing it or avoid this another way?
Environment Versions
Steps to replicate
pip-compile
.Expected result
textract and related packages in generated output file.
Actual result
Process exits with error:
The text was updated successfully, but these errors were encountered: