spotify-downloader: Can't download playlist

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>

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 30 (6 by maintainers)

Most upvoted comments

@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

@MikhailZex Different error now

  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```