py-googletrans icon indicating copy to clipboard operation
py-googletrans copied to clipboard

googletrans conflict with python-telegram-bot because of httpx package

Open Ammar-Husain opened this issue 1 year ago • 7 comments

googletrans uses httpx=0.13.3 which is very old, latest version is 0.25.0, this lead to confliction with many packages like python-telegram-bot which require httpx~=0.24.1 and many other packages.

can you consider switching to newest versions of httpx ?

Ammar-Husain avatar Sep 23 '23 14:09 Ammar-Husain

Same issue here

jonbesga avatar Sep 26 '23 12:09 jonbesga

Please update this package version

jahrmando avatar Oct 26 '23 19:10 jahrmando

It's also conflict with openai module just for the outdated httpx module support.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. openai 1.2.4 requires httpx<1,>=0.23.0, but you have httpx 0.13.3 which is incompatible.

Almas-Ali avatar Nov 15 '23 11:11 Almas-Ali

Anyone struggling with the httpx error, this might help. Also had to pin it to a specific version. https://github.com/c-goosen/py-googletrans/tree/upgrade-httpx

c-goosen avatar Nov 17 '23 12:11 c-goosen

https://github.com/ShivangKakkar/googletrans fork says that makes it possible to use httpx's newer versions than 0.13.3.

It doesn't install script bin/translate so I don't know how this could work.

nunotexbsd avatar Nov 29 '23 10:11 nunotexbsd

Anyone struggling with the httpx error, this might help. Also had to pin it to a specific version. https://github.com/c-goosen/py-googletrans/tree/upgrade-httpx

It doesn't support native bulk translation. Just iterations over it in a loop

chezihp avatar Jan 04 '24 16:01 chezihp

Resolved here: https://github.com/ssut/py-googletrans/issues/395

jhowilbur avatar Feb 15 '24 14:02 jhowilbur