-
Notifications
You must be signed in to change notification settings - Fork 167
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
json.decoder.JSONDecodeError: Extra data: line 1 column 300 (char 299) #36
Comments
Same issue:
Hope you can fix this soon. |
Change the line 151 in google_trans_new/google_trans_new.py which is: |
Same issue 😑 |
151行 |
If you want to use language detect function,
you should fix the line 233 response = (decoded_line + ']') |
This solution worked for me. It should be implemented in the code in the repo and update a new version on pip, this is a major bug. |
When can a new release be expected? This is a major bug. |
I refactored the translation part of To install via pip install itranslate The package also provide an async version: |
Hi, thanks for fix. Are you going to release the new pip package ? |
is it possible to release a new version with that fix? |
same issue, waiting for the fix as I can't manually edit the package on my project |
Thanks, I edited the file manually and everything worked |
Many thanks for pushing this out with the json loads issue fixed. I thought it had been incorporated into google_trans_new but even when I uninstalled/reinstalled the package, the old broken code was still in place. Your version plugged in almost seamlessly to a project where I was using google_trans_new. Only differences being in the way you call it (yes, I actually had to read your instructions) and in the way the target language is specified. |
Hello all, I tried to fix by using the new version but I am getting the same error again. I am trying to decode "mai pareshan hu" which is Hindi for "i am worried" in Django views, but I am still getting error while using the When user submits the form, it goes into the URL like I tried updating the line 151 as suggested by @CurtisDai. Is there something I am doing it wrong. I appreciate any help I can get. Thank you in advance. |
Change the line 151 and Line 233 in google_trans_new/google_trans_new.py: This solution works, confirmed on 18-Jul-2021. |
Hello @YeshanMa . Thanks for your help and time. I tried replacing it but it still doesnt work for some other reason. Still, thanks again for the help. |
This still doesn't work, hope it gets updated on pip soon, so that I can use google translate on some production systems easily. |
any updates, guys? getting the same error |
I'm also getting the same error. So the API is not working? |
@YeshanMa fix worked for me. I had to modify the code of the package but since then, no issue |
Hi @NicoCaldo, can you share how you did it again with the code replacement? I tried to replace the same but didnt work. Thanks in advance. |
|
Any update? Same error here. |
i change in line 153 and also still the error .. any help plz |
I am currently working with kaggle notebook. can anyone help out on how to fix the bug from my end? |
me too,Have you found any way? |
Altering it at both of these positions fixed both translation and language detection. |
I committed the modified package to Pypi, use if necessary. pypi: https://pypi.org/project/google-trans-new-flicker |
Translating anything fails with exception "json.decoder.JSONDecodeError: Extra data: line 1 column 300 (char 299)"
The text was updated successfully, but these errors were encountered: