insaiyancvk/pymusicdl

Issue installing.

0xE69 opened this issue · 7 comments

0xE69 commented

musicdl
Traceback (most recent call last):
File "C:\Users\mail\AppData\Local\Programs\Python\Python39\Scripts\musicdl.bat", line 3, in
from pymusicdl.musicDL import main, check_ffmpeg
File "C:\Users\mail\AppData\Local\Programs\Python\Python39\lib\site-packages\pymusicdl_init_.py", line 7, in
from pymusicdl.musicDL import main
File "C:\Users\mail\AppData\Local\Programs\Python\Python39\lib\site-packages\pymusicdl\musicDL.py", line 6, in
logging.basicConfig(filename=LOG_FILE, level=logging.ERROR)
File "C:\Users\mail\AppData\Local\Programs\Python\Python39\lib\logging_init_.py", line 2003, in basicConfig
h = FileHandler(filename, mode,
File "C:\Users\mail\AppData\Local\Programs\Python\Python39\lib\logging_init_.py", line 1146, in init
StreamHandler.init(self, self.open())
File "C:\Users\mail\AppData\Local\Programs\Python\Python39\lib\logging_init
.py", line 1175, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding,
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\mail\Desktop\musicDL downloads\logger.log'

0xE69 commented

curl -o setup.bat https://raw.githubusercontent.com/insaiyancvk/pymusicdl/main/setup.bat && setup && del setup.bat
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2380 100 2380 0 0 2380 0 0:00:01 --:--:-- 0:00:01 9520
Traceback (most recent call last):
File "C:\Users\mail\Downloads\MusicDL\setup.bat", line 12, in
import pymusicdl.musicDL
File "C:\Users\mail\AppData\Local\Programs\Python\Python39\lib\site-packages\pymusicdl_init_.py", line 7, in
from pymusicdl.musicDL import main
File "C:\Users\mail\AppData\Local\Programs\Python\Python39\lib\site-packages\pymusicdl\musicDL.py", line 6, in
logging.basicConfig(filename=LOG_FILE, level=logging.ERROR)
File "C:\Users\mail\AppData\Local\Programs\Python\Python39\lib\logging_init_.py", line 2003, in basicConfig
h = FileHandler(filename, mode,
File "C:\Users\mail\AppData\Local\Programs\Python\Python39\lib\logging_init_.py", line 1146, in init
StreamHandler.init(self, self.open())
File "C:\Users\mail\AppData\Local\Programs\Python\Python39\lib\logging_init
.py", line 1175, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding,
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\mail\Desktop\musicDL downloads\logger.log'

I'll work on it ASAP.

@Brad-Hunter I couldn't reproduce the error. Could you try again?

i am also facing the same issue

i am also facing the same issue

i found the solution for the problem it is becoz there is no folder by the name of musicDL downloads on your desktop just make a folder by this name and you are good to go

@DewanshNehra @Brad-Hunter
I just updated the code. How careless of me for not testing it properly.
You can update the package with: pip install pymusicdl -U

0xE69 commented

Closing as this is old.