Skip to content

"/usr/bin/env: python3: No such file or directory" on docker image #36

@danielvijge

Description

@danielvijge

Trying to play a Mixcloud stream on LMS running on the official docker image gives an error message:
/usr/bin/env: python3: No such file or directory

The official docker image does not contain python 3, but python 3.8 is required by the bundled version of the helper application (yt-dlp). Instead of installing python every time the docker image is updated, follow the following steps:

  1. Download a standalone Linux version of yt-dlp. Download the correct version for your architecture (x64, armv7l, aarch64)
  2. Save/copy the download to a folder that is mounted inside the docker image, for example the music folder at /music, so the binary path becomes /music/yt-dlp.
  3. Make it executable by running from a terminal chmod +x /music/yt-dlp (can be done outside the contain, on the host).
  4. In the Mixcloud settings, change the helper application from bundled to system, and in the path text box set /music/yt-dlp.

The Mixcloud plugin will now always use this version, and the docker image can be updated without issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions