Me_Bot
Me_Bot copied to clipboard
TypeError: 'encoding' is an invalid keyword argument for this function
trafficstars
Hey Spandan,
I cloned your repository on my system (macOS version: 10.14.1). I followed the instructions as per your README.md. After exporting the chat transcript I placed it inside the directory and then ran the python command that was mentioned on the README.
However, I get this error:
File "clean_whatsapp_chats.py", line 7, in <module>
f = open(chat_file,'r', encoding="utf8")
TypeError: 'encoding' is an invalid keyword argument for this function
I solved this problem by running python3 command. I just wanted to inform that the python script does not run with the native python command on macOS terminal.
Also, is it supposed to generate a directory named: res