[PR #3034] [CLOSED] Add python to Docker build #9319

Closed
opened 2026-02-07 06:00:07 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/3034
Author: @reynn
Created: 5/2/2020
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 Dockerfile (+1 -1)

📄 Description

Changes

I noticed an error when building the Docker image on my server to test the latest changes. Seems to be a dependency added recently needs a Python version installed. I tried python3 instead of the python package but it does not build.

yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.12: The platform "linux" is incompatible with this module.
info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
error /jellyfin-web-master/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: /jellyfin-web-master/node_modules/node-sass
Output:
Building: /usr/local/bin/node /jellyfin-web-master/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   '/usr/local/bin/node',
gyp verb cli   '/jellyfin-web-master/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@14.0.0 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at getNotFoundError (/jellyfin-web-master/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/jellyfin-web-master/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/jellyfin-web-master/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /jellyfin-web-master/node_modules/which/which.js:89:16
gyp verb `which` failed     at /jellyfin-web-master/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /jellyfin-web-master/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:175:21)
gyp verb `which` failed  python2 Error: not found: python2
gyp verb `which` failed     at getNotFoundError (/jellyfin-web-master/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/jellyfin-web-master/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/jellyfin-web-master/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /jellyfin-web-master/node_modules/which/which.js:89:16
gyp verb `which` failed     at /jellyfin-web-master/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /jellyfin-web-master/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:175:21) {
gyp verb `which` failed   code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` failed Error: not found: python
gyp verb `which` failed     at getNotFoundError (/jellyfin-web-master/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/jellyfin-web-master/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/jellyfin-web-master/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /jellyfin-web-master/node_modules/which/which.js:89:16
gyp verb `which` failed     at /jellyfin-web-master/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /jellyfin-web-master/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:175:21)
gyp verb `which` failed  python Error: not found: python
gyp verb `which` failed     at getNotFoundError (/jellyfin-web-master/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/jellyfin-web-master/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/jellyfin-web-master/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /jellyfin-web-master/node_modules/which/which.js:89:16
gyp verb `which` failed     at /jellyfin-web-master/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /jellyfin-web-master/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:175:21) {
gyp verb `which` failed   code: 'ENOENT'
gyp verb `which` failed }
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (/jellyfin-web-master/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (/jellyfin-web-master/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack     at F (/jellyfin-web-master/node_modules/which/which.js:68:16)
gyp ERR! stack     at E (/jellyfin-web-master/node_modules/which/which.js:80:29)
gyp ERR! stack     at /jellyfin-web-master/node_modules/which/which.js:89:16
gyp ERR! stack     at /jellyfin-web-master/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /jellyfin-web-master/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:175:21)
gyp ERR! System Linux 5.3.0-46-generic
gyp ERR! command "/usr/local/bin/node" "/jellyfin-web-master/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /jellyfin-web-master/node_modules/node-sass
gyp ERR! node -v v14.0.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1

Issues


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/3034 **Author:** [@reynn](https://github.com/reynn) **Created:** 5/2/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`2aa96bb`](https://github.com/jellyfin/jellyfin/commit/2aa96bbcc74174fb1958e6bf7b8c61442d51594a) Update Dockerfile ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+1 -1) </details> ### 📄 Description <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** I noticed an error when building the Docker image on my server to test the latest changes. Seems to be a dependency added recently needs a Python version installed. I tried python3 instead of the python package but it does not build. ``` yarn install v1.22.4 [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@1.2.12: The platform "linux" is incompatible with this module. info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... [4/4] Building fresh packages... error /jellyfin-web-master/node_modules/node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: /jellyfin-web-master/node_modules/node-sass Output: Building: /usr/local/bin/node /jellyfin-web-master/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= gyp info it worked if it ends with ok gyp verb cli [ gyp verb cli '/usr/local/bin/node', gyp verb cli '/jellyfin-web-master/node_modules/node-gyp/bin/node-gyp.js', gyp verb cli 'rebuild', gyp verb cli '--verbose', gyp verb cli '--libsass_ext=', gyp verb cli '--libsass_cflags=', gyp verb cli '--libsass_ldflags=', gyp verb cli '--libsass_library=' gyp verb cli ] gyp info using node-gyp@3.8.0 gyp info using node@14.0.0 | linux | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` failed Error: not found: python2 gyp verb `which` failed at getNotFoundError (/jellyfin-web-master/node_modules/which/which.js:13:12) gyp verb `which` failed at F (/jellyfin-web-master/node_modules/which/which.js:68:19) gyp verb `which` failed at E (/jellyfin-web-master/node_modules/which/which.js:80:29) gyp verb `which` failed at /jellyfin-web-master/node_modules/which/which.js:89:16 gyp verb `which` failed at /jellyfin-web-master/node_modules/isexe/index.js:42:5 gyp verb `which` failed at /jellyfin-web-master/node_modules/isexe/mode.js:8:5 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:175:21) gyp verb `which` failed python2 Error: not found: python2 gyp verb `which` failed at getNotFoundError (/jellyfin-web-master/node_modules/which/which.js:13:12) gyp verb `which` failed at F (/jellyfin-web-master/node_modules/which/which.js:68:19) gyp verb `which` failed at E (/jellyfin-web-master/node_modules/which/which.js:80:29) gyp verb `which` failed at /jellyfin-web-master/node_modules/which/which.js:89:16 gyp verb `which` failed at /jellyfin-web-master/node_modules/isexe/index.js:42:5 gyp verb `which` failed at /jellyfin-web-master/node_modules/isexe/mode.js:8:5 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:175:21) { gyp verb `which` failed code: 'ENOENT' gyp verb `which` failed } gyp verb check python checking for Python executable "python" in the PATH gyp verb `which` failed Error: not found: python gyp verb `which` failed at getNotFoundError (/jellyfin-web-master/node_modules/which/which.js:13:12) gyp verb `which` failed at F (/jellyfin-web-master/node_modules/which/which.js:68:19) gyp verb `which` failed at E (/jellyfin-web-master/node_modules/which/which.js:80:29) gyp verb `which` failed at /jellyfin-web-master/node_modules/which/which.js:89:16 gyp verb `which` failed at /jellyfin-web-master/node_modules/isexe/index.js:42:5 gyp verb `which` failed at /jellyfin-web-master/node_modules/isexe/mode.js:8:5 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:175:21) gyp verb `which` failed python Error: not found: python gyp verb `which` failed at getNotFoundError (/jellyfin-web-master/node_modules/which/which.js:13:12) gyp verb `which` failed at F (/jellyfin-web-master/node_modules/which/which.js:68:19) gyp verb `which` failed at E (/jellyfin-web-master/node_modules/which/which.js:80:29) gyp verb `which` failed at /jellyfin-web-master/node_modules/which/which.js:89:16 gyp verb `which` failed at /jellyfin-web-master/node_modules/isexe/index.js:42:5 gyp verb `which` failed at /jellyfin-web-master/node_modules/isexe/mode.js:8:5 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:175:21) { gyp verb `which` failed code: 'ENOENT' gyp verb `which` failed } gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (/jellyfin-web-master/node_modules/node-gyp/lib/configure.js:484:19) gyp ERR! stack at PythonFinder.<anonymous> (/jellyfin-web-master/node_modules/node-gyp/lib/configure.js:406:16) gyp ERR! stack at F (/jellyfin-web-master/node_modules/which/which.js:68:16) gyp ERR! stack at E (/jellyfin-web-master/node_modules/which/which.js:80:29) gyp ERR! stack at /jellyfin-web-master/node_modules/which/which.js:89:16 gyp ERR! stack at /jellyfin-web-master/node_modules/isexe/index.js:42:5 gyp ERR! stack at /jellyfin-web-master/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqCallback.oncomplete (fs.js:175:21) gyp ERR! System Linux 5.3.0-46-generic gyp ERR! command "/usr/local/bin/node" "/jellyfin-web-master/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /jellyfin-web-master/node_modules/node-sass gyp ERR! node -v v14.0.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1 ``` **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:00:07 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#9319