When downloading playlist, following error is thrown:
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\music\Czech songs\.\Temp\DIVOKEJ BILL - Takovej pocit.webm'
System OS: Windows 10
Python Version: 3.9.1
Install Source: installled with pip install spotdl
Version OR Commit hash: Version: 3.2.1
Download full playlist
at 22% PermissionError is thrown
File "c:\users\michal\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\michal\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\Michal\AppData\Local\Programs\Python\Python39\Scripts\spotdl.exe\__main__.py", line 7, in <module>
File "c:\users\michal\appdata\local\programs\python\python39\lib\site-packages\spotdl\__main__.py", line 112, in console_entry_point
downloader.download_multiple_songs(songObjList)
File "c:\users\michal\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 93, in download_multiple_songs
self._download_asynchronously(songObjList)
File "c:\users\michal\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 355, in _download_asynchronously
self.loop.run_until_complete(asyncio.gather(*tasks))
File "c:\users\michal\appdata\local\programs\python\python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "c:\users\michal\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 350, in _pool_download
return await self.download_song(song_obj)
File "c:\users\michal\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 300, in download_song
remove(downloadedFilePath)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\music\\Czech songs\\.\\Temp\\DIVOKEJ BILL - Takovej pocit.webm'
I cannot reproduce this error. The playlist downloads correctly for me and does not fail.
Windows 10 Pro, Python 3.9.0, spotDL v3.2.1
I concur, playlist downloads correctly.
I had this issue too, thankfully running the command again seemed to finish downloading the remaining ones
Everything is exactly the same on my PC as @michalfalat except my version of spotDL is 3.3.1 and the playlist I am downloading is different
97%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ |ETA: 00:43, 0.05min/songTraceback (most recent call last):
File "c:\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
97%|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ |ETA: 00:58, 0.07min/song File "c:\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Python39\Scripts\spotdl.exe\__main__.py", line 7, in <module>
File "c:\python39\lib\site-packages\spotdl\__main__.py", line 112, in console_entry_point
downloader.download_multiple_songs(songObjList)
File "c:\python39\lib\site-packages\spotdl\download\downloader.py", line 91, in download_multiple_songs
self._download_asynchronously(songObjList)
File "c:\python39\lib\site-packages\spotdl\download\downloader.py", line 355, in _download_asynchronously
self.loop.run_until_complete(asyncio.gather(*tasks))
File "c:\python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "c:\python39\lib\site-packages\spotdl\download\downloader.py", line 350, in _pool_download
return await self.download_song(song_obj)
File "c:\python39\lib\site-packages\spotdl\download\downloader.py", line 258, in download_song
downloadedFilePath.unlink()
File "c:\python39\lib\pathlib.py", line 1343, in unlink
self._accessor.unlink(self)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\XXX\\Downloads\\spotdl\\Temp\\XXX - XXX.mp4'
Most helpful comment
I had this issue too, thankfully running the command again seemed to finish downloading the remaining ones
Everything is exactly the same on my PC as @michalfalat except my version of spotDL is 3.3.1 and the playlist I am downloading is different