deanmalmgren / textract

extract text from any document. no muss. no fuss.
http://textract.readthedocs.io
MIT License
3.92k stars 609 forks source link

Having issue while downloading textract dependency #539

Open gh-mkapuria opened 2 weeks ago

gh-mkapuria commented 2 weeks ago

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.
ScarlettSun9 commented 4 days ago

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

juhoinkinen commented 17 hours ago

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

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