Open ghost opened 3 years ago
I am facing the same issue. The code snippet on the page doesn't work either. Is there a fix to this issue ?
Locally the changes made to the line 155 in the file google_trans_new/google_trans_new.py works, but I am using the package as a dependency on Heroku, the error still persists there
not working for me either
does not work at all
@Namyalg, can you specify your fix in google_trans_new.py?
Hi, @erikjamesmason , I followed this issue https://github.com/lushan88a/google_trans_new/issues/36, the third comment seemed to solve my problem locally
@Namyalg awesome, thank you very much!
google translator not working It's showing this error, tried the solution given above but still the same error persists
Traceback (most recent call last):
File "D:\PYTHON PROJECT\voice_translator.py", line 2, in
from .google_trans_new import google_translator
File "C:\Python310\lib\site-packages\google_trans_new\google_trans_new.py", line 4, in
Hope to get an alternative solution soon that works! Thankyou in advance :)
Hey guys, having the same problem. As a workaround, do the following:
Change line 156 in file /lib/python3.10/site-packages/google_trans_new/google_trans_new.py, (or wherever your lib is installed) from
response = (decoded_line + ']')
to
response = (decoded_line + '')
EDIT: Whoops, that was already recommended in the other issue, sorry.
I also encounted the json error. it is yet to still be fixed.
I was able to use https://github.com/nidhaloff/deep-translator to solve my problem.
Hey guys, having the same problem. As a workaround, do the following: Change line 156 in file /lib/python3.10/site-packages/google_trans_new/google_trans_new.py, (or wherever your lib is installed) from
response = (decoded_line + ']')
toresponse = (decoded_line + '')
EDIT: Whoops, that was already recommended in the other issue, sorry.
Anaconda do it as you sad ,but not work, can you help?
Anaconda do it as you sad ,but not work, can you help?
Sure, if you describe your issue further, i can see if i can help
Anaconda do it as you sad ,but not work, can you help?
Sure, if you describe your issue further, i can see if i can help
Hi, when I use your method to delete ] , anaconda doesn't work. It fails to delete ].
Hey guys, having the same problem. As a workaround, do the following: Change line 156 in file /lib/python3.10/site-packages/google_trans_new/google_trans_new.py, (or wherever your lib is installed) from
response = (decoded_line + ']')
toresponse = (decoded_line + '')
EDIT: Whoops, that was already recommended in the other issue, sorry.
Thank you. It's working now
it was working around one month ago. but suddenly it is showing json loading error
JSONDecodeError Traceback (most recent call last)