nidhaloff / deep-translator

A flexible free and unlimited python tool to translate between different languages in a simple way using multiple translators.
https://deep-translator.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
1.61k stars 186 forks source link

Not able to install extra #191

Closed yoli1888 closed 1 year ago

yoli1888 commented 1 year ago

Description

Attempt to install deep-translator extras after installing deep-translator 1.10.0: [docx] and [pdf]

What I Did

pip install -U deep-translator[pdf] zsh: no matches found: deep-translator[pdf]

yoli1888 commented 1 year ago

Turns out zsh uses square brackets for globbing / pattern matching.

So I try again with:

pip install 'deep-translator[pdf]' WARNING: deep-translator 1.10.0 does not provide the extra 'pdf'

Appreciate if python examples can be provided to verify if deep-translator can process pdf/docx file.

nidhaloff commented 1 year ago

Hey @yoli1888, thanks for opening this issue. Indeed it was a bug in the way I was using poetry. I released a hotfix v1.10.1

So if you want to use extras, you have to install options:

- pip example -> pip install deep-translator[pdf]
- poetry example -> poetry install deep-translator --extras "pdf"