Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'encoding' is an invalid keyword argument for this function #6

Open
psomdeb25 opened this issue Nov 28, 2018 · 0 comments
Open

Comments

@psomdeb25
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant