textract icon indicating copy to clipboard operation
textract copied to clipboard

Having issue while downloading textract dependency

Open gh-mkapuria opened this issue 1 year ago • 4 comments

Issue: When I try to download textract dependency. It is giving me warning and blocking my work.

Steps to reproduce:

pip install textract upon entering above command, it gives me below error:

Collecting textract Using cached textract-1.6.5-py3-none-any.whl.metadata (2.5 kB) WARNING: Ignoring version 1.6.5 of textract since it has invalid metadata: Requested textract from https://files.pythonhosted.org/packages/6b/3e/ac16b6bf28edf78296aea7d0cb416b49ed30282ac8c711662541015ee6f3/textract-1.6.5-py3-none-any.whl has invalid metadata: .* suffix can only be used with == or != operators extract-msg (<=0.29.*)

Please use pip<24.1 if you need to use this version.
Using cached textract-1.6.4.tar.gz (17 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
error in textract setup command: 'install_requires' must be a string or iterable of strings containing valid project/version requirement specifiers; .* suffix can only be used with == or != operators
extract-msg<=0.29.*
~~~~~~~^
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

gh-mkapuria avatar Nov 15 '24 22:11 gh-mkapuria

Having the same trouble here trying to install textract in Colab.

ScarlettSun9 avatar Nov 25 '24 09:11 ScarlettSun9

Duplicate of #476 #489 and #525 (at least).

The simplest work-around is to downgrade pip: pip install --upgrade pip<24.1.

juhoinkinen avatar Nov 29 '24 10:11 juhoinkinen

This worked for me-> pip install --upgrade "pip<24.1"

nishithaNsingh avatar Feb 15 '25 16:02 nishithaNsingh

same isse but non of the worked for me

singhdiwakar020 avatar Feb 20 '25 07:02 singhdiwakar020