-
Notifications
You must be signed in to change notification settings - Fork 50
Unable to find token seed! Did https://translate.google.com change? #161
Comments
This is also happening to me and some other people on Anki forums. Pls update when possible |
I also encountered the same problem, and the response was very slow |
@FaVorith Thanks for getting all the resources ready. If you change the file def get_google(self):
tts = gTTS(self.text, lang=self.lang)
# Code inserted from https://github.com/pndurette/gTTS/issues/232
count=1
while True:
try:
tts.save(self.path)
break
except:
print('got the issue '+str(count))
count+=1
# The following line was there before
# tts.save(self.path) it is going to work again (although it's going to take a few seconds when it would otherwise run in the error). |
Hi @3ter , Thanks for your quick support. This indeed works, although it does take quite a long time to eventually fill out the fields (but much better than having to restart Anki all the time). Thanks and regards, |
Could someone explain the fix in layman's terms? Tried to do the above but it didn't work for me so I'm guessing I didn't do it correctly |
@mvrloc The code fails on I recommend to replace the file contents of @FaVorith Afaik all files are replaced when an addon is updated. |
@3ter Thanks it seems to be working as you describe now. Slow but no crashes. Thanks so much! |
Hello! I sincerely apologise for asking but could one of you guide me step by step on how to do the above steps? I don't understand where to locate the file that I am supposed to amend to fix the current crash. I have no coding experience whatsoever I am afraid. I have been unable to study for the past few days before of the crash issue and would really need to fix it to be able to proceed. Thank you so much in advance to all of you! |
@CatherineKatia Hi! Are you using Windows? If so this is how I did it. Each step is a click through on explorer. |
@mvrloc Oh wow!! Thank you so much for such a clear step by step explanation, it worked like a charm! I am beyond grateful!!! Thank you again for taking the time and so kindly explaining everything . Have a lovely day! |
2021-01-30: Updated instructions because Google changed their TTS service again 2021-02-15: Make sure to use gTTS version 2.2.2 The gTTS project just released a new version
Old Instructions2021-02-15: With the recent release of gTTS For some reason, Google removed the
The changes are always the same: Via the search&replace function of your text editor, change all occurences of If you don't feel comfortable manually editing the files in your Anki plugin folder, you can download them from the (Original idea by @gpshearn, thank you!) |
@psii thanks for letting us know |
@psii Great, thank you so much for letting us know! |
Fix jdlorimer#161. Thanks to @psii for mentioning that the update fixes the issue.
There is no problem with using gTTS 2.2.1! Also, there is no problem deleting sleep(5). |
You right I fixe it but simply updating gtts and gtts-token depends. I have proposed a pull request hoping it accelerate the public update which is not simple for common people. |
Thanks !!!!!!! |
Hello, Debuginformationen: Caught exception: |
@nina-katharina Based on the error message, it looks like the folder you need to replace is located Let me know if you need help |
@zacbennett Beim Laden von 'Chinese Support Redux v0140': Do you know what I got wrong? |
Sorry, my original instructions might not have been accurate. In Here's a gif that I copied from @psii in another thread that was helpful to me. |
@zacbennett |
I have been trying to use the solutions listed above to make gTTS work with a virtual assistant that I am developing but haven't had any progress. I still receive the same errors even after implementing this solution below
The loop just keeps on running until I stop the program by myself. Is there any other thing I can do to resolve the issue? |
@CharlesJ10 Yes, you can update the gTTs lib accordingly to this post. |
Okay, thank you. |
Fixes jdlorimer#161
@psii Thank you so much for adding the solution for the recent issue (dated 30 Jan 2021, following Google latest TTS fix) so quickly !! I am very grateful to people like you who take the time to fix issues that affect us, and then patiently explain to us all how to apply the fix so we can all get on with our lives with Anki! :) |
Oh no, the fix stopped working after 2 new cards... It keeps crashing again. I completed all the steps though. Anyone would know how to diagnose why it is still not working for me? Many thanks! This is the error I am getting when creating a new card : Debug info: Caught exception: During handling of the above exception, another exception occurred: Traceback (most recent call last): |
@CatherineKatia, thank you for your kind words. I think your problem may just be a temporary one. The error message hints at this (too many requests). Have you tried it again at a later time? I just created around 20 cards without any issues. So it is difficult to say why there is a problem at your end. Maybe you were just unlucky because Google restricted their service in your area to push back against some fraudulent behaviour. |
@psii Yes, thank you! It started working again! |
Hey there, |
@sikulas21 You only need to find the addons folder location. The layout inside is platform independent. |
Thanks very much. I'll try it out!
Am Mi., 3. Feb. 2021 um 20:25 Uhr schrieb 3ter <[email protected]>:
… @sikulas21 <https://github.com/sikulas21> You only need to find the
addons folder location. The layout inside is platform independent.
Start Anki and open Addons (e.g. with ctrl + shift + A or from the menu
"Tools").
[image: image]
<https://user-images.githubusercontent.com/11499929/106794386-0fe94380-6659-11eb-8472-b23ea2bee9d7.png>
Then select "View Files". Your explorer opens and you'll find a folder
named "1128979221". That's where you'll find the structure to make the
necessary changes.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#161 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASW5K3HTAKKHVYW4AKZBEBLS5GL33ANCNFSM4TJ4FTBA>
.
|
Hi, Anki 2.1.29 (bbff62bf) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1 Caught exception: I've gone through every file that said "zh-cn" that's been mentioned on this thread, and changed it to "zh". Other than that, I don't know what to get from the error message. What's the issue? Thanks in advance, I appreciate any help I can get. |
@BdKellogg: It seems that you missed replacing |
Note that as of gtts v2.2.2 you don't need to replace all the uses of Actually it looks like the country part just needed to be capitalized (i.e: In other words, just replace the If you already made the other changes you might want to change them back first (easiest way is probably just to delete the addon and redownload it). |
I see. I had replaced my gtts with 2.2.1. Just did what @noinkling said and it seems to be working so far. Thanks! Edit: I made this comment shortly after I tried the fix, and it worked for a little bit. But soon after I made this comment it stopped working. BUT I found a way out. |
Please reopen this ticket if the latest version does not fully address the issue. I'll be uploading to AnkiWeb later in the day. |
Hi,
The gTTS library used for this addon crashes with the following error message: "Unable to find token seed! Did https://translate.google.com change?"
This is a known issue in gTTS: pndurette/gTTS#232
There are some workarounds mention in the issue - would it be possible to work with one of these in the addon? Otherwise the addon will crash on almost every card...
Thanks and regards,
Fabian
The text was updated successfully, but these errors were encountered: