I am running the following code:-
from googletrans import Translator, constants
from pprint import print
# init the Google API translator
translator = Translator()
# translate a spanish text to english text (by default)
translation = translator.translate("Hola Mundo")
print("{} ({}) --> {} ({})".format(translation.origin, translation.src, translation.text, translation.dest))
While running this code, I got the error as : AttributeError: 'NoneType' object has no attribute 'group'
I can't figure out how to fix this error.
I have seen other answers on stackoverflow but those are not useful.
Does anyone know how to fix it?
