Open Old-Farmer opened 10 months ago
@Old-Farmer It's not a proxy problem, you try setting from_language
to auto
and it should be fine. Then you try to use longer sentences and then change the from_language
and it doesn't seem to be a problem. Therefore, I do not know how this problem is handled within the translation service.
By the way, pip install --upgrade translators==5.8.8
Try changing self._baidu = BaiduV1() # V2
to V2. V1 doesn't work anymore.
Debug Tips
What happened?
I run this code.
I am sure this proxy is right.
Then I get this output:
However, if I set from_language as "auto", everything works fine.
APP Version
translators v5.8.7
Python Version
3.10
Runtime Environment
Linux Ubuntu
Country/Region
Central and Western District
Relevant log output
No response
Screenshots
No response
Code of Conduct