py-googletrans: AttributeError: 'NoneType' object has no attribute 'group'
I’m using one of the basic code:
from googletrans import Translator
translator = Translator()
translation=translator.translate('안녕하세요.', dest='ja')
print(translation)
And I’m getting an attribute error :
AttributeError: 'NoneType' object has no attribute 'group'
Please let me know if the module is still working properly.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 21
- Comments: 23
Solution:
Worked for me, thank you 😃
The issue is due to a failure followed by an invalid execution path that is not handled properly …
it seems.Ref: jtoken.py
As it can be noticed from the above two, which logically are equal
Furthermore, I dump the repose text
r.textand I noticed it looked like an error page in html, so the api is probably failing. Hope the above can help with a fix in RC2.Also related
Works for me 🥇
It resolved my issue. Thanks.
It also solved my issue. Thanks