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

Please Help #20

Open
Adith2507 opened this issue Dec 12, 2021 · 17 comments
Open

Please Help #20

Adith2507 opened this issue Dec 12, 2021 · 17 comments

Comments

@Adith2507
Copy link

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

@insaiyancvk
Copy link
Owner

Did you happen to backup your desktop to onedrive?

@Adith2507
Copy link
Author

No..

@insaiyancvk
Copy link
Owner

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

@Adith2507
Copy link
Author

image

@insaiyancvk
Copy link
Owner

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

@Adith2507
Copy link
Author

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

@Adith2507
Copy link
Author

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

@insaiyancvk
Copy link
Owner

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.

@Adith2507
Copy link
Author

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

@insaiyancvk
Copy link
Owner

@Adith2507
Copy link
Author

Thank You So much

@Adith2507
Copy link
Author

The songs seem to be downloaded in webm format

@insaiyancvk
Copy link
Owner

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.

@Adith2507
Copy link
Author

image

image

@Adith2507
Copy link
Author

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

@insaiyancvk
Copy link
Owner

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.

@Adith2507
Copy link
Author

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

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

2 participants