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.46k stars 1.6k forks source link

HTTP Error 410: Gone Windows Only #1372

Closed ReactiveSlime closed 3 years ago

ReactiveSlime commented 3 years ago

System OS

Windows

Python Version

3.8 (CPython)

Install Source

pip / PyPi

Install version / commit hash

3.7.2

Expected Behavior vs Actual Behavior

for the music to download but signle songs just dont workd and a playlist gives me a traceback.

Steps to reproduce

try to download anything on windows try to download anything

Traceback

traceback (most recent call last):
  File "C:\Python39\Scripts\spotdl-script.py", line 33, in <module>
    sys.exit(load_entry_point('spotdl==3.2.0rc0', 'console_scripts', 'spotdl')())
  File "c:\python39\lib\site-packages\spotdl\__main__.py", line 130, in console_entry_point
    downloader.download_multiple_songs(songObjList)
  File "c:\python39\lib\site-packages\spotdl\download\downloader.py", line 306, in download_multiple_songs
    self._download_asynchronously(songObjList)
  File "c:\python39\lib\site-packages\spotdl\download\downloader.py", line 568, 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 563, in _pool_download
    return await self.download_song(song_obj)
  File "c:\python39\lib\site-packages\spotdl\download\downloader.py", line 389, in download_song
    youtubeHandler = YouTube(
  File "c:\python39\lib\site-packages\pytube\__main__.py", line 104, in __init__
    self.prefetch()
  File "c:\python39\lib\site-packages\pytube\__main__.py", line 221, in prefetch
    self.vid_info_raw = request.get(self.vid_info_url)
  File "c:\python39\lib\site-packages\pytube\request.py", line 42, in get
    return _execute_request(url, headers=extra_headers).read().decode("utf-8")
  File "c:\python39\lib\site-packages\pytube\request.py", line 26, in _execute_request
    return urlopen(request)  # nosec
  File "c:\python39\lib\urllib\request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "c:\python39\lib\urllib\request.py", line 523, in open
    response = meth(req, response)
  File "c:\python39\lib\urllib\request.py", line 632, in http_response
    response = self.parent.error(
  File "c:\python39\lib\urllib\request.py", line 555, in error
    result = self._call_chain(*args)
  File "c:\python39\lib\urllib\request.py", line 494, in _call_chain
    result = func(*args)
  File "c:\python39\lib\urllib\request.py", line 747, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "c:\python39\lib\urllib\request.py", line 523, in open
    response = meth(req, response)
  File "c:\python39\lib\urllib\request.py", line 632, in http_response
    response = self.parent.error(
  File "c:\python39\lib\urllib\request.py", line 561, in error
    return self._call_chain(*args)
  File "c:\python39\lib\urllib\request.py", line 494, in _call_chain
    result = func(*args)
  File "c:\python39\lib\urllib\request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 410: Gone

Other details

Only on windows. I have done the same songs on WLS Ubuntu 18.04 and an actual Ubuntu 18.04 macine Also reinstall sptodl and restarted windows

Silverarmor commented 3 years ago

pip install -U --force spotdl pytube ytmusicapi youtube-dl spotipy

Silverarmor commented 3 years ago

Also your spotDL is clearly out of date in your traceback

spotdl==3.2.0rc0

ReactiveSlime commented 3 years ago

i just ran the command and the errors are still happening with this still in the traceback spotdl==3.2.0rc0 but pip show spotdl says Version: 3.7.2

Silverarmor commented 3 years ago

pip show spotdl and show full output?

ReactiveSlime commented 3 years ago

Name: spotdl Version: 3.7.2 Summary: Download your Spotify playlists and songs along with album art and metadata Home-page: https://github.com/spotDL/spotify-downloader Author: spotDL Team Author-email: spotdladmins@googlegroups.com License: MIT Location: c:\users\roryl\appdata\roaming\python\python38\site-packages Requires: Unidecode, pytube, mutagen, ytmusicapi, rapidfuzz, requests, rich, spotipy, tqdm, youtube-dl, beautifulsoup4 Required-by:

Silverarmor commented 3 years ago

You have multiple installs of python. Go to control panel, uninstall ALL of them then install as per below instructions

You need to install Python from https://www.python.org/downloads/ image