Spotify-downloader: Can't download playlist

Created on 9 Dec 2020  Β·  30Comments  Β·  Source: spotDL/spotify-downloader

Hello,

I'm having a problem while downloading playlist. It suddenly stops at 4%. I've tryed multiple times with different playlists.
Version I'm running is 3.1.4. I got python and ffmpeg installed, as well as pytube which I was troubleshooting while I searching for solution on google (uninstalling and installing it). Am I missing someting ?
Can anyone help me please ?

C:\Users\darko>spotdl https://open.spotify.com/playlist/7JAdfJue28XcbNFaAM7xKf
Fetching Playlist...
  4%|β–ˆβ–ˆβ–ˆβ–                                                                                     |ETA: 03:55, 0.03min/songmultiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\site-packages\spotdl\download\downloader.py", line 114, in download_song
    downloadedFilePath = trackAudioStream.download(
AttributeError: 'NoneType' object has no attribute 'download'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\multiprocessing\pool.py", line 51, in starmapstar
    return list(itertools.starmap(args[0], args[1]))
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\site-packages\spotdl\download\downloader.py", line 124, in download_song
    remove(join(tempFolder, convertedFileName) + '.mp4')
FileNotFoundError: [WinError 2] The system cannot find the file specified: '.\\Temp\\Regard, RAYE - Secrets - Tom Field Remix.mp4'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\darko\AppData\Local\Programs\Python\Python38-32\Scripts\spotdl.exe\__main__.py", line 7, in <module>
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\site-packages\spotdl\__main__.py", line 116, in console_entry_point
    downloader.download_multiple_songs(songObjList)
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\site-packages\spotdl\download\downloader.py", line 293, in download_multiple_songs
    self.workerPool.starmap(
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\multiprocessing\pool.py", line 372, in starmap
    return self._map_async(func, iterable, starmapstar, chunksize).get()
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\multiprocessing\pool.py", line 771, in get
    raise self._value
FileNotFoundError: [Errno 2] The system cannot find the file specified: '.\\Temp\\Regard, RAYE - Secrets - Tom Field Remix.mp4'

Edit :
Just tryed to download a song

C:\Users\darko>spotdl https://open.spotify.com/track/5HFPK8mcO6BGPZNeZPZI5L
Fetching Song...
  0%|                                                                                                                                  |ETA: ?, ~min/songTraceback (most recent call last):
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\site-packages\spotdl\download\downloader.py", line 114, in download_song
    downloadedFilePath = trackAudioStream.download(
AttributeError: 'NoneType' object has no attribute 'download'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\darko\AppData\Local\Programs\Python\Python38-32\Scripts\spotdl.exe\__main__.py", line 7, in <module>
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\site-packages\spotdl\__main__.py", line 100, in console_entry_point
    downloader.download_single_song(song)
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\site-packages\spotdl\download\downloader.py", line 274, in download_single_song
    download_song(songObj, self.displayManager, self.downloadTracker)
  File "c:\users\darko\appdata\local\programs\python\python38-32\lib\site-packages\spotdl\download\downloader.py", line 124, in download_song
    remove(join(tempFolder, convertedFileName) + '.mp4')
FileNotFoundError: [WinError 2] The system cannot find the file specified: '.\\Temp\\Ytram, Martin Garrix - Fire (with Elderbrook).mp4'
  0%|                                                                                                                                  |ETA: ?, ~min/song

C:\Users\darko>

All 30 comments

Try upgrading to the master branch.

Try upgrading to the master branch.

I'm not sure what does that means ?

Just gonna bump because I'm having this issue as well. Maybe he means installing from github rather than pip releases?

run pip install https://codeload.github.com/spotDL/spotify-downloader/zip/master

run pip install https://codeload.github.com/spotDL/spotify-downloader/zip/master

I am now having the same error. Updating to master branch did not solve.
pytube already pip-autoremove'd and installed latest.

@MikhailZex Different error now
Fetching Playlist... 0%| |ETA: ?, ~min/songTraceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/bin/spotdl", line 11, in <module> load_entry_point('spotdl==3.1.4', 'console_scripts', 'spotdl')() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotdl/__main__.py", line 113, in console_entry_point downloader.download_multiple_songs(songObjList) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotdl/download/downloader.py", line 93, in download_multiple_songs self._download_asynchronously(songObjList) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotdl/download/downloader.py", line 345, in _download_asynchronously self.loop.run_until_complete(asyncio.gather(*tasks)) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 608, in run_until_complete return future.result() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotdl/download/downloader.py", line 340, in _pool_download return await self.download_song(song_obj) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotdl/download/downloader.py", line 176, in download_song youtubeHandler = YouTube( File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pytube/__main__.py", line 91, in __init__ self.prefetch() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pytube/__main__.py", line 183, in prefetch self.js_url = extract.js_url(self.watch_html) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pytube/extract.py", line 143, in js_url base_js = get_ytplayer_config(html)["assets"]["js"] File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pytube/extract.py", line 202, in get_ytplayer_config raise RegexMatchError(caller="get_ytplayer_config", pattern="config_patterns") pytube.exceptions.RegexMatchError: get_ytplayer_config: could not find match for config_patterns Exception ignored in: <function tqdm.__del__ at 0x7fa69695d430> Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tqdm/std.py", line 1124, in __del__ File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tqdm/std.py", line 1337, in close File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tqdm/std.py", line 1516, in display File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tqdm/std.py", line 1127, in __repr__ File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spotdl/download/progressHandlers.py", line 23, in format_dict File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tqdm/std.py", line 1477, in format_dict TypeError: cannot unpack non-iterable NoneType object

Update: After running
pip uninstall spotdl pip install https://codeload.github.com/spotDL/spotify-downloader/zip/master pip uninstall pytube pip3 install git+https://github.com/nficano/pytube
I am able to use spotdl with no errors πŸ™‚

Okay so after that I'm kinda able to download song but not playlist..
In my C:\Users(username) folder I'm getting .mp3 files with 0KB size but in C:\Users(username)\Temp folder I have downloaded songs, same files as in previous folder but those are 2-3MB and working although I'm getting this error.
So, for playlist I got few songs downloaded and then stopped but when I download separate song, it actually works but still having an error like this :

C:\Users\darko>spotdl https://open.spotify.com/track/44fXOB2eBG8uaQJGwh26Bk
Fetching Song...
 89%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž         |ETA: 00:09, 1.50min/songTraceback (most recent call last):
  File "C:\Users\darko\AppData\Local\Programs\Python\Python39\Scripts\spotdl-script.py", line 33, in <module>
    sys.exit(load_entry_point('spotdl==3.1.4', 'console_scripts', 'spotdl')())
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\__main__.py", line 97, in console_entry_point
    downloader.download_single_song(song)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 76, in download_single_song
    self._download_asynchronously([songObj])
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 345, in _download_asynchronously
    self.loop.run_until_complete(asyncio.gather(*tasks))
  File "c:\users\darko\appdata\local\programs\python\python39\lib\asyncio\base_events.py", line 642, in run_until_complete
    return future.result()
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 340, in _pool_download
    return await self.download_song(song_obj)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 231, in download_song
    audioFile = EasyID3(convertedFilePath)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\easyid3.py", line 169, in __init__
    self.load(filename)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 185, in wrapper
    return func(*args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 156, in wrapper
    return func(self, h, *args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\id3\_file.py", line 152, in load
    self._header = ID3Header(fileobj)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 185, in wrapper
    return func(*args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\id3\_tags.py", line 59, in __init__
    raise ID3NoHeaderError("%s: too small" % fn)
mutagen.id3._util.ID3NoHeaderError: .\Dua Lipa - Physical.mp3: too small
 95%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–|ETA: 00:00, ~min/song

C:\Users\darko>

and for playlist :

C:\Users\darko>spotdl https://open.spotify.com/playlist/7JAdfJue28XcbNFaAM7xKf
Fetching Playlist...
  4%|β–ˆβ–ˆβ–ˆβ–                                                                                     |ETA: 04:31, 0.03min/songTraceback (most recent call last):
  File "C:\Users\darko\AppData\Local\Programs\Python\Python39\Scripts\spotdl-script.py", line 33, in <module>
    sys.exit(load_entry_point('spotdl==3.1.4', 'console_scripts', 'spotdl')())
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\__main__.py", line 113, in console_entry_point
    downloader.download_multiple_songs(songObjList)
  File "c:\users\darko\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\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 345, in _download_asynchronously
  4%|β–ˆβ–ˆβ–ˆβ–                                                                                     |ETA: 05:06, 0.04min/song    self.loop.run_until_complete(asyncio.gather(*tasks))
  File "c:\users\darko\appdata\local\programs\python\python39\lib\asyncio\base_events.py", line 642, in run_until_complete
    return future.result()
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 340, in _pool_download
    return await self.download_song(song_obj)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 231, in download_song
    audioFile = EasyID3(convertedFilePath)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\easyid3.py", line 169, in __init__
    self.load(filename)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 185, in wrapper
    return func(*args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 156, in wrapper
    return func(self, h, *args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\id3\_file.py", line 152, in load
    self._header = ID3Header(fileobj)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 185, in wrapper
    return func(*args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\id3\_tags.py", line 59, in __init__
    raise ID3NoHeaderError("%s: too small" % fn)
mutagen.id3._util.ID3NoHeaderError: .\Regard, RAYE - Secrets - Tom Field Remix.mp3: too small
  4%|β–ˆβ–ˆβ–ˆβ–Š

Clean install spotdl

Older versions of the libraries are probably not updated.

Uninstall spotdl with pip-autoremove, then clear pip cache, then install from master.

I did

 pip3-autoremove spotdl
 pip cache purge
 pip install https://codeload.github.com/spotDL/spotify-downloader/zip/master

but still having the same error

I am having the same error. It does start and working for a couple of tracks then gives the same error as mentioned above.

I did remove the spotdl and I did a clean install from master but unfortunately didn't work.

```
C:\Users\alper\OneDrive\Desktop\spotify download>spotdl https://open.spotify.com/playlist/37i9dQZF1E8LpQLQCKuvVf
Fetching Playlist...
10%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž |ETA: 13:40, 0.31min/songTraceback (most recent call last):
File "c:\users\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 318, in _perform_audio_download
downloadedFilePath = trackAudioStream.download(
AttributeError: 'NoneType' object has no attribute 'download'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\alper\AppData\Local\Programs\Python\Python39\Scripts\spotdl-script.py", line 33, in
sys.exit(load_entry_point('spotdl==3.1.4', 'console_scripts', 'spotdl')())
File "c:\users\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl__main__.py", line 113, in console_entry_point
downloader.download_multiple_songs(songObjList)
File "c:\users\alper\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\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 345, in _download_asynchronously
self.loop.run_until_complete(asyncio.gather(tasks))
File "c:\users\alper\appdata\local\programs\python\python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "c:\users\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 340, in _pool_download
return await self.download_song(song_obj)
File "c:\users\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 185, in download_song
downloadedFilePath = await self._download_from_youtube(convertedFileName, tempFolder,
File "c:\users\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 306, in _download_from_youtube
return await self.loop.run_in_executor(
File "c:\users\alper\appdata\local\programs\python\python39\lib\concurrent\futures\thread.py", line 52, in run
result = self.fn(
self.args, **self.kwargs)
File "c:\users\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 330, in _perform_audio_download
remove(fileName)
FileNotFoundError: [WinError 2] The system cannot find the file specified: '.\Temp\Murda, Ezhel - Anadolu Flex.mp4'
```

I am having the same error. It does start and working for a couple of tracks then gives the same error as mentioned above.

I did remove the spotdl and I did a clean install from master but unfortunately didn't work.

C:\Users\alper\OneDrive\Desktop\spotify download>spotdl https://open.spotify.com/playlist/37i9dQZF1E8LpQLQCKuvVf
Fetching Playlist...
 10%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Ž                                                                               |ETA: 13:40, 0.31min/songTraceback (most recent call last):
  File "c:\users\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 318, in _perform_audio_download
    downloadedFilePath = trackAudioStream.download(
AttributeError: 'NoneType' object has no attribute 'download'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\alper\AppData\Local\Programs\Python\Python39\Scripts\spotdl-script.py", line 33, in <module>
    sys.exit(load_entry_point('spotdl==3.1.4', 'console_scripts', 'spotdl')())
  File "c:\users\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl\__main__.py", line 113, in console_entry_point
    downloader.download_multiple_songs(songObjList)
  File "c:\users\alper\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\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 345, in _download_asynchronously
    self.loop.run_until_complete(asyncio.gather(*tasks))
  File "c:\users\alper\appdata\local\programs\python\python39\lib\asyncio\base_events.py", line 642, in run_until_complete
    return future.result()
  File "c:\users\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 340, in _pool_download
    return await self.download_song(song_obj)
  File "c:\users\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 185, in download_song
    downloadedFilePath = await self._download_from_youtube(convertedFileName, tempFolder,
  File "c:\users\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 306, in _download_from_youtube
    return await self.loop.run_in_executor(
  File "c:\users\alper\appdata\local\programs\python\python39\lib\concurrent\futures\thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "c:\users\alper\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 330, in _perform_audio_download
    remove(fileName)
FileNotFoundError: [WinError 2] The system cannot find the file specified: '.\\Temp\\Murda, Ezhel - Anadolu Flex.mp4'

This one I've noticed before, now I'm able to reproduce it. I've filed an issue against pytube: nficano/pytube#872

Actually, previous errors seem also affected by this.

Hello to everyone,

same problem here, same error

So umm I had the same issue and I found a fix

First we gotta uninstall pytube, use
pip uninstall pytube

Then clear the cache
pip cache purge

Now go here and download the pytube source code latest version zip file ( now it's version 10.1.0 )
It's because when we use pip install it's downloading version 10.0.0
https://github.com/nficano/pytube/releases
Now extract it and go inside the extracted directory and open terminal there

In terminal type
pip install .

Don't forget the period(.)

This should fix spotdl's problem..... (0w0)

Still nothing..
Uninstalled pytube, runned that command and then

C:\Users\darko\OneDrive\Radna povrΕ‘ina\pytube-master>pip install .
Processing c:\users\darko\onedrive\radna povrΕ‘ina\pytube-master
Requirement already satisfied: typing_extensions in c:\users\darko\appdata\local\programs\python\python39\lib\site-packages (from pytube==10.1.0) (3.7.4.3)
Using legacy 'setup.py install' for pytube, since package 'wheel' is not installed.
Installing collected packages: pytube
    Running setup.py install for pytube ... done
Successfully installed pytube-10.1.0

C:\Users\darko\OneDrive\Radna povrΕ‘ina\pytube-master>spotdl https://open.spotify.com/track/46lyJh9GYmWsHez3EsvmAx
Fetching Song...
 83%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰               |ETA: 00:32, 3.19min/songTraceback (most recent call last):
  File "C:\Users\darko\AppData\Local\Programs\Python\Python39\Scripts\spotdl-script.py", line 33, in <module>
    sys.exit(load_entry_point('spotdl==3.1.4', 'console_scripts', 'spotdl')())
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\__main__.py", line 97, in console_entry_point
    downloader.download_single_song(song)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 76, in download_single_song
    self._download_asynchronously([songObj])
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 345, in _download_asynchronously
    self.loop.run_until_complete(asyncio.gather(*tasks))
  File "c:\users\darko\appdata\local\programs\python\python39\lib\asyncio\base_events.py", line 642, in run_until_complete
    return future.result()
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 340, in _pool_download
    return await self.download_song(song_obj)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 231, in download_song
    audioFile = EasyID3(convertedFilePath)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\easyid3.py", line 169, in __init__
    self.load(filename)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 185, in wrapper
    return func(*args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 156, in wrapper
    return func(self, h, *args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\id3\_file.py", line 152, in load
    self._header = ID3Header(fileobj)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 185, in wrapper
    return func(*args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\id3\_tags.py", line 59, in __init__
    raise ID3NoHeaderError("%s: too small" % fn)
mutagen.id3._util.ID3NoHeaderError: .\VINAI - Rise Up (feat. Vamero).mp3: too small
 95%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ|ETA: 00:00, ~min/song

C:\Users\darko\OneDrive\Radna povrΕ‘ina\pytube-master>

Still nothing..
Uninstalled pytube, runned that command and then

C:\Users\darko\OneDrive\Radna povrΕ‘ina\pytube-master>pip install .
Processing c:\users\darko\onedrive\radna povrΕ‘ina\pytube-master
Requirement already satisfied: typing_extensions in c:\users\darko\appdata\local\programs\python\python39\lib\site-packages (from pytube==10.1.0) (3.7.4.3)
Using legacy 'setup.py install' for pytube, since package 'wheel' is not installed.
Installing collected packages: pytube
    Running setup.py install for pytube ... done
Successfully installed pytube-10.1.0

C:\Users\darko\OneDrive\Radna povrΕ‘ina\pytube-master>spotdl https://open.spotify.com/track/46lyJh9GYmWsHez3EsvmAx
Fetching Song...
 83%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰               |ETA: 00:32, 3.19min/songTraceback (most recent call last):
  File "C:\Users\darko\AppData\Local\Programs\Python\Python39\Scripts\spotdl-script.py", line 33, in <module>
    sys.exit(load_entry_point('spotdl==3.1.4', 'console_scripts', 'spotdl')())
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\__main__.py", line 97, in console_entry_point
    downloader.download_single_song(song)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 76, in download_single_song
    self._download_asynchronously([songObj])
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 345, in _download_asynchronously
    self.loop.run_until_complete(asyncio.gather(*tasks))
  File "c:\users\darko\appdata\local\programs\python\python39\lib\asyncio\base_events.py", line 642, in run_until_complete
    return future.result()
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 340, in _pool_download
    return await self.download_song(song_obj)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 231, in download_song
    audioFile = EasyID3(convertedFilePath)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\easyid3.py", line 169, in __init__
    self.load(filename)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 185, in wrapper
    return func(*args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 156, in wrapper
    return func(self, h, *args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\id3\_file.py", line 152, in load
    self._header = ID3Header(fileobj)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 185, in wrapper
    return func(*args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\id3\_tags.py", line 59, in __init__
    raise ID3NoHeaderError("%s: too small" % fn)
mutagen.id3._util.ID3NoHeaderError: .\VINAI - Rise Up (feat. Vamero).mp3: too small
 95%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ|ETA: 00:00, ~min/song

C:\Users\darko\OneDrive\Radna povrΕ‘ina\pytube-master>

That one seems like yet another issue, not related to pytube.

@fr0sty98 - I can't reproduce your issue. Please run the following commands and let me know if the issue still persists:

pip install git+https://github.com/spotDL/spotify-downloader.git
pip install git+https://github.com/nficano/pytube.git

So umm I had the same issue and I found a fix

First we gotta uninstall pytube, use
pip uninstall pytube

Then clear the cache
pip cache purge

Now go here and download the pytube source code latest version zip file ( now it's version 10.1.0 )
It's because when we use pip install it's downloading version 10.0.0
https://github.com/nficano/pytube/releases
Now extract it and go inside the extracted directory and open terminal there

In terminal type
pip install .

Don't forget the period(.)

This should fix spotdl's problem..... (0w0)

Yea, essentially what I did. (https://github.com/spotDL/spotify-downloader/issues/1025#issuecomment-743422724)
Pip installing from the git repo is the same as downloading the latest ver

Had the same issue,

pip install git+https://github.com/nficano/pytube.git

did the trick for me

So umm I had the same issue and I found a fix
First we gotta uninstall pytube, use
pip uninstall pytube
Then clear the cache
pip cache purge
Now go here and download the pytube source code latest version zip file ( now it's version 10.1.0 )
It's because when we use pip install it's downloading version 10.0.0
https://github.com/nficano/pytube/releases
Now extract it and go inside the extracted directory and open terminal there
In terminal type
pip install .
Don't forget the period(.)
This should fix spotdl's problem..... (0w0)

Yea, essentially what I did. (#1025 (comment))
Pip installing from the git repo is the same as downloading the latest ver

Try completely uninstalling python and install latest (3.9.1) python then pip install either from git or spotdl
Also if your playlist contains local files, it'll give an error too from a concatenation issue since the local files don't have strings in the place of artisit, album etc and instead have 'NoneType' which gives error, so exclude your local files

@fr0sty98 - I can't reproduce your issue. Please run the following commands and let me know if the issue still persists:

pip install git+https://github.com/spotDL/spotify-downloader.git
pip install git+https://github.com/nficano/pytube.git

Installed Python 3.9.1 but that doesn't change anything cuz spotdl is located in \appdata\local\programs\
so I did pip3-autoremove spotdl and runned your commands and having still the same issue.
Just to try, I changed download location but still the same.. It actually downloads in the folder "Temp" in located directory but can't download a whole playlist, it keeps failing.. you can try with same playlist, I've tryed few of them

C:\Users\darko\OneDrive\Radna povrΕ‘ina\spoty>spotdl https://open.spotify.com/playlist/7JAdfJue28XcbNFaAM7xKf
Fetching Playlist...
  2%|β–ˆβ–ˆβ–                                                                                      |ETA: 02:49, 0.02min/songTraceback (most recent call last):
  File "C:\Users\darko\AppData\Local\Programs\Python\Python39\Scripts\spotdl-script.py", line 33, in <module>
    sys.exit(load_entry_point('spotdl==3.1.4', 'console_scripts', 'spotdl')())
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\__main__.py", line 113, in console_entry_point
    downloader.download_multiple_songs(songObjList)
  File "c:\users\darko\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\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 345, in _download_asynchronously
    self.loop.run_until_complete(asyncio.gather(*tasks))
  File "c:\users\darko\appdata\local\programs\python\python39\lib\asyncio\base_events.py", line 642, in run_until_complete
    return future.result()
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 340, in _pool_download
    return await self.download_song(song_obj)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\spotdl\download\downloader.py", line 231, in download_song
    audioFile = EasyID3(convertedFilePath)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\easyid3.py", line 169, in __init__
    self.load(filename)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 185, in wrapper
    return func(*args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 156, in wrapper
    return func(self, h, *args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\id3\_file.py", line 152, in load
    self._header = ID3Header(fileobj)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\_util.py", line 185, in wrapper
    return func(*args, **kwargs)
  File "c:\users\darko\appdata\local\programs\python\python39\lib\site-packages\mutagen\id3\_tags.py", line 59, in __init__
    raise ID3NoHeaderError("%s: too small" % fn)
mutagen.id3._util.ID3NoHeaderError: .\Regard, RAYE - Secrets - Tom Field Remix.mp3: too small
  3%|β–ˆβ–ˆβ–‹                                                                                      |ETA: 02:24, 0.02min/song
C:\Users\darko\OneDrive\Radna povrΕ‘ina\spoty>

@fr0sty98 I think this is an entirely different error...
Try these all in order for a clean install

pip3 uninstall spotdl
pip3 uninstall pytube
pip3 install python3-pip-autoremove
pip3-autoremove pytube
pip3-autoremove spotdl
pip3 cache purge
pip3 install git+https://github.com/nficano/pytube
pip3 install https://codeload.github.com/spotDL/spotify-downloader/zip/master

With sudo when needed.
lmk how it goes. Should fix your problems.
-Fern :)

@fr0sty98 I think this is an entirely different error...
Try these all in order for a clean install

pip3 uninstall spotdl
pip3 uninstall pytube
pip3 install python3-pip-autoremove
pip3-autoremove pytube
pip3-autoremove spotdl
pip3 cache purge
pip3 install git+https://github.com/nficano/pytube
pip3 install https://codeload.github.com/spotDL/spotify-downloader/zip/master

With sudo when needed.
lmk how it goes. Should fix your problems.
-Fern :)

Thank you for your response, but that doesn't actually change anything.. Here's full copy from cmd just to check if everything went well cuz autoremove command didn't do anything
https://pastebin.com/3qJ1JSVf
Edit : I'm not sure what sudo means, I'm not so much into that..
Edit2 :

@fr0sty98 - I can't reproduce your issue. Please run the following commands and let me know if the issue still persists:

pip install git+https://github.com/spotDL/spotify-downloader.git
pip install git+https://github.com/nficano/pytube.git

So now I got this working, but on gf's laptop..
It came to my mind to try on different computer so I installed python, git and ffmpeg, runned those commands and it's downloading exact the same playlist without errors.
That means my system is problem but there are other issues that people reported having the same error

@fr0sty98 I noticed you're running spotdl from a directory nested within Onedrive... are you syncing a parent folder of this directory to the cloud? That may be what's causing issues because I remember that onedrive sometimes changes directory names and spaces in the folder name won't work

See if you can run spotdl from a diff directory like C:\Users[yourname]\Music or smt

@fr0sty98 I think this is an entirely different error...
Try these all in order for a clean install

pip3 uninstall spotdl
pip3 uninstall pytube
pip3 install python3-pip-autoremove
pip3-autoremove pytube
pip3-autoremove spotdl
pip3 cache purge
pip3 install git+https://github.com/nficano/pytube
pip3 install https://codeload.github.com/spotDL/spotify-downloader/zip/master

With sudo when needed.
lmk how it goes. Should fix your problems.
-Fern :)

Thank you for your response, but that doesn't actually change anything.. Here's full copy from cmd just to check if everything went well cuz autoremove command didn't do anything
https://pastebin.com/3qJ1JSVf
Edit : I'm not sure what sudo means, I'm not so much into that..
Edit2 :

@fr0sty98 - I can't reproduce your issue. Please run the following commands and let me know if the issue still persists:

pip install git+https://github.com/spotDL/spotify-downloader.git
pip install git+https://github.com/nficano/pytube.git

So now I got this working, but on gf's laptop..
It came to my mind to try on different computer so I installed python, git and ffmpeg, runned those commands and it's downloading exact the same playlist without errors.
That means my system is problem but there are other issues that people reported having the same error

OK sorry, got the order mixed up. Run the commands again but without the uninstalls. Just use autoremove
pip3 install python3-pip-autoremove pip3-autoremove pytube pip3-autoremove spotdl pip3 cache purge pip3 install git+https://github.com/nficano/pytube pip3 install https://codeload.github.com/spotDL/spotify-downloader/zip/master

I think it might just an issue with one of the pip packages being out of date

Ah, I had the same issue. Solved, thanks to @FernThatYoutubeGuy!

@fr0sty98 I noticed you're running spotdl from a directory nested within Onedrive... are you syncing a parent folder of this directory to the cloud? That may be what's causing issues because I remember that onedrive sometimes changes directory names and spaces in the folder name won't work

See if you can run spotdl from a diff directory like C:\Users[yourname]\Music or smt

Yeah I noticed that and got rid of onedrive but that's not the one causing this problem.. Here's my report from previous post
https://pastebin.com/3qJ1JSVf

@FernThatYoutubeGuy just runned everything, went well but still having "too small" error at 7%
I think I will give up here and use another laptop.. but there are other people reporting exactly the same issue, that might be some kind of a bug.
Edit:

I think it might just an issue with one of the pip packages being out of date

Most likely.. everything worked well when I installed pyton on clean laptop, but still not working on mine where I reinstalled it(updated old version).
Probably there might be some settings left in directories or something like that. Is there any better way to wipe it except standard uninstall option ? Just to mention, both laptops are lenovo, first one is running i7 4th gen, another one is i7 7th gen.

@fr0sty98 I noticed you're running spotdl from a directory nested within Onedrive... are you syncing a parent folder of this directory to the cloud? That may be what's causing issues because I remember that onedrive sometimes changes directory names and spaces in the folder name won't work

See if you can run spotdl from a diff directory like C:\Users[yourname]\Music or smt

Yeah I noticed that and got rid of onedrive but that's not the one causing this problem.. Here's my report from previous post
https://pastebin.com/3qJ1JSVf

@FernThatYoutubeGuy just runned everything, went well but still having "too small" error at 7%
I think I will give up here and use another laptop.. but there are other people reporting exactly the same issue, that might be some kind of a bug.
Edit:

I think it might just an issue with one of the pip packages being out of date

Most likely.. everything worked well when I installed pyton on clean laptop, but still not working on mine where I reinstalled it(updated old version).
Probably there might be some settings left in directories or something like that. Is there any better way to wipe it except standard uninstall option ? Just to mention, both laptops are lenovo, first one is running i7 4th gen, another one is i7 7th gen.

pip_autoremove spotdl
pip cache purge
pip install spotdl

Duplicate of #1018.
Patched in 568ea6d - Install spotDL from master if still experiencing this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iateadonut picture iateadonut  Β·  4Comments

RowanSkie picture RowanSkie  Β·  5Comments

b-rad15 picture b-rad15  Β·  4Comments

mugi789 picture mugi789  Β·  3Comments

iki picture iki  Β·  4Comments