Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "/usr/lib/python3.5/smtpd.py", line 658, in __init__

type=socket.SOCK_STREAM)
TypeError: getaddrinfo() got an unexpected keyword argument 'type'

Traceback (most recent call last):

 "/home/scripts/wabot/test/whatsapp-bot-seed/src/utils/media_sender.py", line 191, in send
file_path = self.tts_record(text, lang)

 "/home/scripts/wabot/test/whatsapp-bot-seed/src/utils/media_sender.py", line 198, in tts_record
file_path = self._build_file_path(text)

 "/home/scripts/wabot/test/whatsapp-bot-seed/src/utils/media_sender.py", line 204, in _build_file_path
id = hashlib.md5(text).hexdigest()
TypeError: Unicode-objects must be encoded before hashing`