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

WSL - Invalid cross-device link #62

Closed
bassail opened this issue Apr 25, 2020 · 6 comments
Closed

WSL - Invalid cross-device link #62

bassail opened this issue Apr 25, 2020 · 6 comments
Labels

Comments

@bassail
Copy link

bassail commented Apr 25, 2020

Hello,

I'm using Ubuntu terminal on Windows with WSL, and I am getting the following error when downloading a song :

==> ERROR: [Errno 18] Invalid cross-device link: '/home/bastien/.cache/ytmdl/Bohemian Rhapsody.mp3' -> 'Bohemian Rhapsody.mp3'

I guess it is because of WSL and Windows.

I didn't any log file so here is what I get by enabling the DEBUG log level :

ytmdl debug log.txt

Hope it helps you improve ytmdl.

@deepjyoti30
Copy link
Owner

Hey @bassail Thanks for reporting the issue.

Are you able to access the ~/.cache/ytmdl/ directory from your terminal?? It seems like the issues is in moving the completed file from the .cache dir to the home directory.

Can you also tell me if you have put some specific directory on your config file or ytmdl is automatically moving to the default directory?

@bassail
Copy link
Author

bassail commented Apr 25, 2020

Found the log file under ~/.cache/ytmdl/

The mp3 files do exist under ~/.cache/ directory.

I have put a specific directory on my config file. I just ytmdl --setup again to get the default config file, and it works.
I tried again with my own directory, and it works. I don't know what I did wrong.

Thanks !

@bassail bassail closed this as completed Apr 25, 2020
@deepjyoti30
Copy link
Owner

I think the issue was probably because you've set a Windows directory as the final directory and that's why Python wasn't able to move it.

@bassail
Copy link
Author

bassail commented Apr 25, 2020

Just found out what was not working.

On my second attempt, I have set the following SONG_DIR path, which works fine :

SONG_DIR = "/mnt/c/Users/Bastien/Music$Artist->Album->Title"

On my first attempt, the path was this one, which doesn't work :

SONG_DIR = "/mnt/c/Users/Bastien/Music$Artist->Album->[Title]"

and i get the error previously mentioned :

==> ERROR: [Errno 18] Invalid cross-device link: '/home/bastien/.cache/ytmdl/Bohemian Rhapsody.mp3' -> 'Bohemian Rhapsody.mp3'

@bassail bassail reopened this Apr 25, 2020
@deepjyoti30
Copy link
Owner

I think the issue was with putting those square braces around the title, probably something went wrong with that.

@stale
Copy link

stale bot commented Aug 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs for another 7 days. Thank you for your contributions.

@stale stale bot added the stale label Aug 8, 2020
@stale stale bot closed this as completed Aug 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants