Downloads marked as failed when writing a thumbnail (mutagen missing)
When passing in options to embed a thumbnail, the downloads end up being marked as failed due to mutagen missing in the Docker image.
Configured options:
{ "writethumbnail":true, "postprocessors":[ {"key":"FFmpegMetadata","add_metadata":"True"}, {"key":"EmbedThumbnail"} ] }
which docker image are you using?
I am using ghcr.io/alexta69/metube.
ERROR: Postprocessing: module mutagen was not found. Please install using `python3 -m pip install mutagen`
ERROR:ytdl:Download error for videoname: ERROR: Postprocessing: module mutagen was not found. Please install using `python3 -m pip install mutagen`
INFO:ytdl:Updating status for videoname: {'status': 'error', 'msg': 'ERROR: Postprocessing: module mutagen was not found. Please install using `python3 -m pip install mutagen`'}
same
same issue here with the latest docker image
Hi All,
I encountered an error: ERROR: Postprocessing: module mutagen was not found. Please install using `python3 -m pip install mutagen
Did a search on metube project page and found this issue and think its the same issue I was dealing with. I have a workaround that worked for me but YMMV.
root@nasa:~# docker exec -it metube bash
OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown
root@nasa:~# docker exec -it metube sh
/app # pip install mutagen
Collecting mutagen
Downloading mutagen-1.47.0-py3-none-any.whl.metadata (1.7 kB)
Downloading mutagen-1.47.0-py3-none-any.whl (194 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 194.4/194.4 kB 2.0 MB/s eta 0:00:00
Installing collected packages: mutagen
Successfully installed mutagen-1.47.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip is available: 24.0 -> 25.1.1
[notice] To update, run: pip install --upgrade pip
/app # pip install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.11/site-packages (24.0)
Collecting pip
Downloading pip-25.1.1-py3-none-any.whl.metadata (3.6 kB)
Downloading pip-25.1.1-py3-none-any.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 12.9 MB/s eta 0:00:00
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 24.0
Uninstalling pip-24.0:
Successfully uninstalled pip-24.0
Successfully installed pip-25.1.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
/app # exit
root@nasa:~# docker restart metube
tldr:
docker exec -it metube sh
pip install mutagen
pip install --upgrade pip
exit
docker restart metube
and retry failed download
its not pretty or perfect but may help some others out there. perhaps all the author needs to do is update the libraries of the base docker image/Dockerfile.
btw, thanks to the author for such a great project. Ive been using it for years now.
If helpful, I opened up pull request https://github.com/alexta69/metube/pull/667 to include mutagen in the Pipfile.