blastbeng / spotisub

Spotify to subsonic Playlist Generator and Importer
MIT License
105 stars 6 forks source link

ffmpeg is not installed in the Docker Image #24

Closed spanska closed 2 months ago

spanska commented 2 months ago

Hello,

Very nice project. I searched for it for a long time :)

Nevertheless, when launching the Docker container with SpotDL enabled, the following error occurs :

Traceback (most recent call last): File "/home/user/subtify/./main.py", line 1, in import generate_playlists File "/home/user/subtify/./generate_playlists.py", line 28, in import spotdl_helper File "/home/user/subtify/./spotdl_helper.py", line 18, in spotdl_client = Spotdl(client_id=client_id, client_secret=client_secret, no_cache=True) File "/home/user/.local/lib/python3.10/site-packages/spotdl/init.py", line 83, in init self.downloader = Downloader( File "/home/user/.local/lib/python3.10/site-packages/spotdl/download/downloader.py", line 145, in init raise DownloaderError("ffmpeg is not installed") spotdl.download.downloader.DownloaderError: ffmpeg is not installed unable to load app 0 (mountpoint='') (callable not found or import error) no app loaded. going in full dynamic mode

rantanlan commented 2 months ago

Happens to me too, seems it came with the latest update…

blastbeng commented 2 months ago

Looks like the spotdl package got updated in the latest release and this new version doesn't like the ffmpeg binary version installed by the Dockerfile. Will try to fix for next release.

blastbeng commented 2 months ago

Finally replicated it

spotisub  | spawned uWSGI http 1 (pid: 9)
spotisub  | Traceback (most recent call last):
spotisub  |   File "/home/user/spotisub/./main.py", line 23, in <module>
spotisub  |     from spotisub.helpers import subsonic_helper
spotisub  |   File "/home/user/spotisub/./spotisub/helpers/subsonic_helper.py", line 18, in <module>
spotisub  |     from . import spotdl_helper
spotisub  |   File "/home/user/spotisub/./spotisub/helpers/spotdl_helper.py", line 18, in <module>
spotisub  |     spotdl_client = Spotdl(client_id=client_id, client_secret=client_secret, no_cache=True)
spotisub  |   File "/home/user/.local/lib/python3.10/site-packages/spotdl/__init__.py", line 83, in __init__
spotisub  |     self.downloader = Downloader(
spotisub  |   File "/home/user/.local/lib/python3.10/site-packages/spotdl/download/downloader.py", line 145, in __init__
spotisub  |     raise DownloaderError("ffmpeg is not installed")
spotisub  | spotdl.download.downloader.DownloaderError: ffmpeg is not installed
spotisub  | unable to load app 0 (mountpoint='') (callable not found or import error)
spotisub  | *** no app loaded. going in full dynamic mode ***
^CGracefully stopping... (press Ctrl+C again to force)

Will hopefully fix in release 0.2.0

NOTE: In the next release the project will be renamed to spotisub

rantanlan commented 2 months ago

thanks and good choice, since there seem to be another project with the name spotisub

spanska commented 2 months ago

Thanks for this very quick answer and fix :)

blastbeng commented 2 months ago

Resolved in Release v0.2.0

Please reopen this issue if you still encounter errors

blastbeng commented 2 months ago

thanks and good choice, since there seem to be another project with the name spotisub

You mean subtify? :)