spotDL / spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
https://spotdl.readthedocs.io/en/latest/
MIT License
17.28k stars 1.59k forks source link

Crash when downloading album due to multiple exceptions #1007

Closed b-rad15 closed 3 years ago

b-rad15 commented 3 years ago

Called using command spotdl https://open.spotify.com/album/0YrdGKt2Oo4y86Jew33mnn Error:

Fetching Album...
  0%|                                                                                                |ETA: ?, ~min/songmultiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "c:\users\brado\appdata\local\programs\python\python38-32\lib\http\client.py", line 571, in _readall_chunked
    value.append(self._safe_read(chunk_left))
  File "c:\users\brado\appdata\local\programs\python\python38-32\lib\http\client.py", line 610, in _safe_read
    raise IncompleteRead(data, amt-len(data))
http.client.IncompleteRead: IncompleteRead(1402 bytes read, 31366 more expected)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\brado\appdata\local\programs\python\python38-32\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "c:\users\brado\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\brado\appdata\local\programs\python\python38-32\lib\site-packages\spotdl\download\downloader.py", line 102, in download_song
    youtubeHandler = YouTube(
  File "c:\users\brado\appdata\local\programs\python\python38-32\lib\site-packages\pytube\__main__.py", line 102, in __init__
    self.prefetch()
  File "c:\users\brado\appdata\local\programs\python\python38-32\lib\site-packages\pytube\__main__.py", line 179, in prefetch
    self.watch_html = request.get(url=self.watch_url)
  File "c:\users\brado\appdata\local\programs\python\python38-32\lib\site-packages\pytube\request.py", line 43, in get
    return _execute_request(url, headers=extra_headers).read().decode("utf-8")
  File "c:\users\brado\appdata\local\programs\python\python38-32\lib\http\client.py", line 461, in read
    return self._readall_chunked()
  File "c:\users\brado\appdata\local\programs\python\python38-32\lib\http\client.py", line 575, in _readall_chunked
    raise IncompleteRead(b''.join(value))
http.client.IncompleteRead: IncompleteRead(747507 bytes read)
"""

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

Traceback (most recent call last):
  File "C:\Users\brado\AppData\Local\Programs\Python\Python38-32\Scripts\spotdl-script.py", line 11, in <module>
    load_entry_point('spotdl==3.1.4', 'console_scripts', 'spotdl')()
  File "c:\users\brado\appdata\local\programs\python\python38-32\lib\site-packages\spotdl\__main__.py", line 110, in console_entry_point
    downloader.download_multiple_songs(songObjList)
  File "c:\users\brado\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\brado\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\brado\appdata\local\programs\python\python38-32\lib\multiprocessing\pool.py", line 771, in get
    raise self._value
http.client.IncompleteRead: IncompleteRead(747507 bytes read)
  0%|                                                                                                |ETA: ?, ~min/song

Installed using pip version 19.2.3 and python version 3.8

issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.99. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

An3yepes commented 3 years ago

I have installe Python 3.8 and PIP 20.3 but I have the same errors:

spotipy>spotdl https://open.spotify.com/album/6gp7h46R7nNNYBlN04dEQY?si=n0V_nh6pTe2cXyYHgwQpeA Fetching Album... 0%| |ETA: ?, ~min/songException in thread Thread-3: Traceback (most recent call last): File "c:\users\andre\appdata\local\programs\python\python37-32\lib\threading.py", line 926, in _bootstrap_inner self.run() File "c:\users\andre\appdata\local\programs\python\python37-32\lib\threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "c:\users\andre\appdata\local\programs\python\python37-32\lib\multiprocessing\pool.py", line 470, in _handle_results task = get() File "c:\users\andre\appdata\local\programs\python\python37-32\lib\multiprocessing\connection.py", line 251, in recv return _ForkingPickler.loads(buf.getbuffer())

stale[bot] commented 3 years ago

This issue has been automatically marked stale because there hasn't been any activity for the last 30 days.

stale[bot] commented 3 years ago

This issue is being closed as it has been 'stale' for a week now.