SathyaBhat / spotify-dl

Downloads songs from your Spotify Playlist
http://sathyasays.com/2015/12/29/spotify-dl-download-your-spotify-my-music-songs-as-mp3/
MIT License
1.76k stars 214 forks source link

Couldn't write token to cache at: .cache #319

Open Marcioghiraldelli opened 1 year ago

Marcioghiraldelli commented 1 year ago

I'm using version 8.5.0 on ubuntu and it's showing this error when I try to download a song. Can someone help me ? Installed via PIP3.

Couldn't read cache at: .cache cache_handler.py:84 Couldn't write token to cache at: .cache cache_handler.py:94 Saving songs to Orbit 37 directory Couldn't read cache at: .cache cache_handler.py:84 Couldn't write token to cache at: .cache cache_handler.py:94 Couldn't read cache at: .cache cache_handler.py:84 Couldn't write token to cache at: .cache cache_handler.py:94 Couldn't read cache at: .cache cache_handler.py:84 Couldn't write token to cache at: .cache cache_handler.py:94 Traceback (most recent call last): File "/usr/local/bin/spotify_dl", line 8, in sys.exit(spotify_dl()) File "/usr/local/lib/python3.8/dist-packages/spotify_dl/spotify_dl.py", line 186, in spotify_dl download_songs( File "/usr/local/lib/python3.8/dist-packages/spotify_dl/youtube.py", line 268, in download_songs os.rename(reference_file, kwargs["output_dir"] + "/" + reference_file) OSError: [Errno 18] Invalid cross-device link: 'download_list.log' -> '/mnt/HC_Volume_26820098/radio_diario/media/Programing_Pro//download_list.log'

jeanlucthumm commented 1 year ago

This seems to happen when the ouptut directory is a mounted device in /mnt