whatsplay / whatsapp-play

Command line software through which you can play with your WhatsApp. It is having different options to play with your WhatsApp like message blast, online tracking, whatsapp chat..
MIT License
405 stars 217 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '/home/username/wplay/logs/wplay.log' #280

Closed ahmed-gelemli closed 4 years ago

ahmed-gelemli commented 4 years ago

username@MY-PC:~/whatsapp-play$ wplay

> Traceback (most recent call last):
>   File "/home/username/.local/bin/wplay", line 6, in <module>
>     from wplay.__main__ import main
>   File "/home/username/.local/lib/python3.7/site-packages/wplay/__main__.py", line 10, in <module>
>     from wplay import online_tracker
>   File "/home/username/.local/lib/python3.7/site-packages/wplay/online_tracker.py", line 5, in <module>
>     from wplay.utils import browser_config
>   File "/home/username/.local/lib/python3.7/site-packages/wplay/utils/browser_config.py", line 39, in <module>
>     __logger = Logger(Path(__file__).name)
>   File "/home/username/.local/lib/python3.7/site-packages/wplay/utils/Logger.py", line 16, in __init__
>     file_handler = logging.FileHandler(logs_path/'wplay.log')
>   File "/usr/lib/python3.7/logging/__init__.py", line 1087, in __init__
>     StreamHandler.__init__(self, self._open())
>   File "/usr/lib/python3.7/logging/__init__.py", line 1116, in _open
>     return open(self.baseFilename, self.mode, encoding=self.encoding)
> FileNotFoundError: [Errno 2] No such file or directory: '/home/username/wplay/logs/wplay.log'

If Someone Knows the Solution to this Error Please Help. Thanks!

rpotter12 commented 4 years ago

@ahmed-gelemli You need to install python3.6.1+ version

xandao-dev commented 4 years ago

@rpotter12 he is using python 3.7

ahmed-gelemli commented 4 years ago

@rpotter12 he is using python 3.7

Yes, I am using Python 3.7 but same issue

xandao-dev commented 4 years ago

@ahmed-gelemli you can create this file manually: '/home/username/wplay/logs/wplay.log'. I will verify why the file wasn't created automatically.

xandao-dev commented 4 years ago

@ahmed-gelemli bug fixed, wait for @rpotter12 to merge the PR.

rpotter12 commented 4 years ago

@rpotter12 he is using python 3.7

Ahhh....I have commented on this issue by mistakenly.