Smoogle translate bot1/5/2024 ![]() If the above doesn't work for you, google_trans_new seems to be a good alternative that works for some people. Github discussion here: In case the fixes above don't work for you See the discussion here for details and updates: Update 10.12.20: Another fix was releasedĪs pointed out by and Breem, there is another fix which seems to work for several people: pip install googletrans=4.0.0-rc1 anslate("Der Himmel ist blau und ich mag Bananen", dest='en') In case it does not work, try to specify the service url like this: from googletrans import Translator #output: 'The sky is blue and I like bananas' Translation = anslate("Der Himmel ist blau und ich mag Bananen", dest='en') Translation example: translator = Translator() Install the alpha version like this: pip install googletrans=3.1.0a0 Update 06.12.20: A new 'official' alpha version of googletrans with a fix was released Is googletrans package broken or something google did at their end ? > from googletrans import Translatorįile "/Library/Frameworks/amework/Versions/3.6/lib/python3.6/site-packages/googletrans/client.py", line 172, in translateįile "/Library/Frameworks/amework/Versions/3.6/lib/python3.6/site-packages/googletrans/client.py", line 75, in _translateįile "/Library/Frameworks/amework/Versions/3.6/lib/python3.6/site-packages/googletrans/gtoken.py", line 180, in doįile "/Library/Frameworks/amework/Versions/3.6/lib/python3.6/site-packages/googletrans/gtoken.py", line 59, in _updateĬode = unicode(self.RE_TKK.search(r.text).group(1)).replace('var ', '')ĪttributeError: 'NoneType' object has no attribute 'group' I tried using multiple service provider internet that has different ip and stil facing the same issue ? I also tried to use googletrans on different laptops, still same issue. I went through multiple posts from stackoverflow and other sites and found probably my ip is banned to use the service for sometime. Since this morning I started getting below error. I was trying googletrans and it was working quite well.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |