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

OSError: [WinError 193] %1 is not a valid Win32 application #1770

Closed oyedejioyewole closed 1 year ago

oyedejioyewole commented 1 year ago

System OS

Windows

Python Version

3.10 (CPython)

Install Source

pip / PyPi

Install version / commit hash

4.1.2

Expected Behavior vs Actual Behavior

Expected behaviour:

Actual behaviour:

Both the CLI and the web client are meant to work and download the music

Steps to reproduce - Ensure to include actual links!

  1. Installed miniconda3 (x64)
  2. Updated the base conda image (this also updates python)
  3. Ran pip install spotdl, there were no issues running this
  4. Ran spotdl https://open.spotify.com/track/2tpWsVSb9UEmDRxAl1zhX1?si=9279048b61054571
  5. Got the error OSError: [WinError 193] %1 is not a valid Win32 application

Traceback

Using command line:

Processing query: https://open.spotify.com/track/2tpWsVSb9UEmDRxAl1zhX1?si=9279048b61054571
OSError: [WinError 193] %1 is not a valid Win32 application

Using web client:

Updating web app

INFO:     Started server process [2436]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://localhost:8800 (Press CTRL+C to quit)
INFO:     ::1:42457 - "GET / HTTP/1.1" 200 OK
INFO:     ::1:42457 - "GET /assets/index-2880774d.js HTTP/1.1" 200 OK
INFO:     127.0.0.1:42458 - "GET /assets/index-711a1c65.css HTTP/1.1" 200 OK
INFO:     ('::1', 42459) - "WebSocket /api/ws?client_id=d1477104-d6ba-4cab-b1e2-abf34896d95f" [accepted]
INFO:     Client d1477104-d6ba-4cab-b1e2-abf34896d95f connected
INFO:     connection open
INFO:     127.0.0.1:42458 - "GET /assets/spotdl-5dcb64c0.svg HTTP/1.1" 200 OK
INFO:     ::1:42462 - "GET /favicon.ico HTTP/1.1" 200 OK
INFO:     ::1:42457 - "GET /api/settings?client_id=d1477104-d6ba-4cab-b1e2-abf34896d95f HTTP/1.1" 200 OK
INFO:     127.0.0.1:42458 - "GET /favicon.ico HTTP/1.1" 304 Not Modified
INFO:     ::1:42461 - "GET /api/check_update HTTP/1.1" 200 OK
INFO:     ::1:42476 - "GET /favicon.ico HTTP/1.1" 304 Not Modified
INFO:     ::1:42475 - "GET /api/songs/search?query=OneRepublic+-+Counting+Stars HTTP/1.1" 200 OK
INFO:     ::1:42497 - "GET /favicon.ico HTTP/1.1" 304 Not Modified
OneRepublic - Counting Stars: Converting
1/0 complete
OSError: [WinError 193] %1 is not a valid Win32 application
ERROR:    Failure downloading Counting Stars
ERROR:    Error downloading!
INFO:     ::1:42490 - "POST /api/download/url?url=https:%2F%2Fopen.spotify.com%2Ftrack%2F6sy3LkhNFjJWlaeSMNwQ62&client_id=d1477104-d6ba-4cab-b1e2-abf34896d95f HTTP/1.1" 500 Internal Server Error

Other details

active environment : base
    active env location : C:\ProgramData\miniconda3
            shell level : 1
       user config file : C:\Users\Oyedeji Oyewole\.condarc
 populated config files :
          conda version : 23.1.0
    conda-build version : not installed
         python version : 3.10.9.final.0
       virtual packages : __archspec=1=x86_64
                          __win=0=0
       base environment : C:\ProgramData\miniconda3  (writable)
      conda av data dir : C:\ProgramData\miniconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\ProgramData\miniconda3\pkgs
                          C:\Users\Oyedeji Oyewole\.conda\pkgs
                          C:\Users\Oyedeji Oyewole\AppData\Local\conda\conda\pkgs
       envs directories : C:\ProgramData\miniconda3\envs
                          C:\Users\Oyedeji Oyewole\.conda\envs
                          C:\Users\Oyedeji Oyewole\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/23.1.0 requests/2.28.2 CPython/3.10.9 Windows/10 Windows/10.0.22624
          administrator : False
             netrc file : None
           offline mode : False
xnetcat commented 1 year ago

this looks like an ffmpeg issue. try downloading it with spotdl

oyedejioyewole commented 1 year ago

@xnetcat thanks, I installed ffmpeg with chocolatey and tried to download the music again and it worked like a charm, thanks 🙏🏽