You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after installing with 'pip install googletrans' to the anaconda env for pytorch
the line: sentences = ['The cat sat on the mat'] translations_fr = translator.translate(sentences, dest='fr')
throws an error:
File "myuser\anaconda3\envs\PyTc\lib\site-packages\googletrans\gtoken.py", line 62, in _update
code = self.RE_TKK.search(r.text).group(1).replace('var ', '')
AttributeError: 'NoneType' object has no attribute 'group'
how can i make this nice tool work?!
The text was updated successfully, but these errors were encountered:
That error is currently under review, see the package's open issue. I'll open a PR.
--> Please try googletrans==3.1.0a0 instead. It's a temporary fix, but its effectiveness seems to depend on your local environment. Feedback is welcome!
after installing with 'pip install googletrans' to the anaconda env for pytorch
the line:
sentences = ['The cat sat on the mat']
translations_fr = translator.translate(sentences, dest='fr')
throws an error:
File "myuser\anaconda3\envs\PyTc\lib\site-packages\googletrans\gtoken.py", line 62, in _update
code = self.RE_TKK.search(r.text).group(1).replace('var ', '')
AttributeError: 'NoneType' object has no attribute 'group'
how can i make this nice tool work?!
The text was updated successfully, but these errors were encountered: