nmoya / whatsapp-parser

Parser to the What's App log file.
MIT License
48 stars 27 forks source link

Can't open 'chat.py' #26

Open jackedmond opened 5 years ago

jackedmond commented 5 years ago

Hi, I came across the below error when trying to run the program. It seems as though python is looking for 'chat.py' which doesn't seem to exist inside any of the directories..

Jacks-MBP-2:whatsapp-parser jackedmond$ python chat.py -f chat.txt -p WhatsApp -n "Nikolas Moya" -r sleepy yes
python: can't open file 'chat.py': [Errno 2] No such file or directory

Apologies if this is a stupid question.. I'm just getting started

nmoya commented 5 years ago

@jackedmond hey, sorry for the late response. No stupid questions.

The README file is wrong, you found a bug! You should run the program like this: python wp_parser/wp_chat.py -f chat.txt -p WhatsApp -n "Nikolas Moya" -r sleepy yes

Also, the second parameter, chat.txt don't exist in the project. You need to replace this with a text file that follows the format specified in test/testChat2.txt.