pymusicdl icon indicating copy to clipboard operation
pymusicdl copied to clipboard

Please Help

Open Adith2507 opened this issue 3 years ago • 17 comments

this is the error i get

Traceback (most recent call last): File "C:\Users\advsa\AppData\Local\Programs\Python\Python39\Scripts\musicdl.bat", line 6, in main() File "C:\Users\advsa\AppData\Local\Programs\Python\Python39\lib\site-packages\pymusicdl\musicDL.py", line 64, in main create_dir() File "C:\Users\advsa\AppData\Local\Programs\Python\Python39\lib\site-packages\pymusicdl\musicDL.py", line 40, in create_dir os.chdir(os.path.expanduser("~/Desktop")) FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\Users\advsa/Desktop'

Can anyone please help me solve this

Adith2507 avatar Dec 12 '21 06:12 Adith2507

Did you happen to backup your desktop to onedrive?

insaiyancvk avatar Dec 12 '21 07:12 insaiyancvk

No..

Adith2507 avatar Dec 12 '21 07:12 Adith2507

Can you check the output to the following command in command prompt python -c "import os;print(os.listdir(os.path.expanduser('~')))"

insaiyancvk avatar Dec 12 '21 07:12 insaiyancvk

image

Adith2507 avatar Dec 12 '21 07:12 Adith2507

Your desktop's location seems to be somewhere else instead of the default directory. Just check if it is in the 'OneDrive' directory. You can try this command in command prompt for that: explorer C:\Users\advsa\OneDrive

insaiyancvk avatar Dec 12 '21 08:12 insaiyancvk

oh yes it is in OneDrive.. um how can i fix this error but?

Adith2507 avatar Dec 12 '21 08:12 Adith2507

do i need to change the location back to default somehow?

Adith2507 avatar Dec 12 '21 08:12 Adith2507

There is a dirty trick that will get rid of the bug, it is, create a 'Desktop' directory in C:\Users<your username>

Otherwise, you just need to change the desktop's location (which is a little complicated but doable)

I'll work on this bug to automatically check for desktop directory that is in onedrive.

insaiyancvk avatar Dec 12 '21 08:12 insaiyancvk

Can u please tell me how to change the desktop's location ?

Adith2507 avatar Dec 12 '21 08:12 Adith2507

Check this link:

https://www.addictivetips.com/windows-tips/move-the-desktop-folder-out-of-onedrive-on-windows-10/

insaiyancvk avatar Dec 12 '21 08:12 insaiyancvk

Thank You So much

Adith2507 avatar Dec 12 '21 08:12 Adith2507

The songs seem to be downloaded in webm format

Adith2507 avatar Dec 12 '21 10:12 Adith2507

is the desktop moved to the default location? and can you check if you have ffmpeg on your PC. You can just give ffmpeg command in the command prompt. If the output is anything other than 'ffmpeg' is not recognized as an internal or external command, operable program or batch file. then it's in your PATH and we can do other tests to reproduce the problem.

insaiyancvk avatar Dec 12 '21 15:12 insaiyancvk

image image

Adith2507 avatar Dec 12 '21 15:12 Adith2507

Yes i believe i did successfully move the desktop to the default location

Adith2507 avatar Dec 12 '21 15:12 Adith2507

Can you ping me on telegram @insaiyancvk I have never seen such an issue. I'll have to pinpoint the reason behind it.

If you try opening the command prompt as an admin, I think it will work.

insaiyancvk avatar Dec 12 '21 15:12 insaiyancvk

I tried running the program on admin it still downloads the file in webm I dont have telegram, its fine tho Thanks for helping me out so much i really appreciate it

Adith2507 avatar Dec 12 '21 15:12 Adith2507