-
Notifications
You must be signed in to change notification settings - Fork 733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in googletrans 4.0.0rc1 translator #257
Comments
Happened to me as well. When I try to do either multiple translator.detect(), it occured |
Same happened to me as well when executing the code snippet below:
|
Hello there, error 429 (Too Many Requests) it is a problem between your external IP and google. Ok, not effective at all. |
Hi, I just used time.sleep(1) in translation loop. It gives more coffee time, works for me. |
I have the same problem and even with changing IPs I am running into error 429. Is there a fix yet? |
I also meet this problem. |
same to me |
Not a solution for this issue, but perhaps still helpful. I ended up using transformer based Neural Translation https://github.com/UKPLab/EasyNMT It takes more time, but since it is a pre-trained model it is not dependent on some API we have no control over and the translation quality is fantastic. |
I'm having this issue as well. Is there any fix coming up? |
Me too have this issue, any fix? |
Same here |
x100!! I made more than 400 queries in a list comprehension perfectly it was ok and then I made another loop and the 'raise_Exception' appear again some clue?? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Wanted to comment so other people don't have to perform another search: currently google translate API allows 5 calls/second, caps it at 200k a day |
sleep(0.3) |
How to translate .po files using this? |
Where do we add the time.sleep(1)? |
The error "Exception: Unexpected status code "429" from ['translate.google.com']", you're getting because the function sent too many requests in a short span of time to google translate API. |
Hi! Did time.sleep() work to anyone to make "infinite" requests to the google translate API? |
I tried the new version of googletrans 4.0.0rc1.
After some time an exception occurs:
AttributeError: 'Translator' object has no attribute 'raise_Exception'
To fix this I need to execute this line:
translator.raise_Exception = True
And then the exception writes:
Exception: Unexpected status code "429" from ['translate.google.com']
The text was updated successfully, but these errors were encountered: