Skip to content

An unhandled error occurred inside electron-rebuild #94

@barrilliot

Description

@barrilliot

Hi,
After npm install I have this error, why? Thanks for your help

odas_studio@0.3.0 postinstall /home/jp/odas_web
electron-rebuild

â Rebuild Failed

An unhandled error occurred inside electron-rebuild
gyp ERR! configure error
gyp ERR! stack Error: Python executable "/usr/bin/python" is v3.11.2, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at PythonFinder.failPythonVersion (/home/jp/odas_web/node_modules/node-gyp/lib/configure.js:493:19)
gyp ERR! stack at PythonFinder. (/home/jp/odas_web/node_modules/node-gyp/lib/configure.js:475:14)
gyp ERR! stack at ChildProcess.exithandler (child_process.js:299:7)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1022:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
gyp ERR! System Linux 6.6.74+rpt-rpi-v8
gyp ERR! command "/home/jp/.nvm/versions/node/v12.22.12/bin/node" "/home/jp/odas_web/node_modules/.bin/node-gyp" "rebuild" "--target=5.0.3" "--arch=arm64" "--dist-url=https://electronjs.org/headers" "--build-from-source" "--module_name=grpc_node" "--module_path=/home/jp/odas_web/node_modules/grpc/src/node/extension_binary/electron-v5.0-linux-arm64-glibc" "--host=https://node-precompiled-binaries.grpc.io/" "--remote_path={name}/v1.21.1" "--package_name=electron-v5.0-linux-arm64-glibc.tar.gz"
gyp ERR! cwd /home/jp/odas_web/node_modules/grpc
gyp ERR! node -v v12.22.12
gyp ERR! node-gyp -v v4.0.0
gyp ERR! not ok

Failed with exit code: 1

Error: gyp ERR! configure error
gyp ERR! stack Error: Python executable "/usr/bin/python" is v3.11.2, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at PythonFinder.failPythonVersion (/home/jp/odas_web/node_modules/node-gyp/lib/configure.js:493:19)
gyp ERR! stack at PythonFinder. (/home/jp/odas_web/node_modules/node-gyp/lib/configure.js:475:14)
gyp ERR! stack at ChildProcess.exithandler (child_process.js:299:7)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1022:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
gyp ERR! System Linux 6.6.74+rpt-rpi-v8
gyp ERR! command "/home/jp/.nvm/versions/node/v12.22.12/bin/node" "/home/jp/odas_web/node_modules/.bin/node-gyp" "rebuild" "--target=5.0.3" "--arch=arm64" "--dist-url=https://electronjs.org/headers" "--build-from-source" "--module_name=grpc_node" "--module_path=/home/jp/odas_web/node_modules/grpc/src/node/extension_binary/electron-v5.0-linux-arm64-glibc" "--host=https://node-precompiled-binaries.grpc.io/" "--remote_path={name}/v1.21.1" "--package_name=electron-v5.0-linux-arm64-glibc.tar.gz"
gyp ERR! cwd /home/jp/odas_web/node_modules/grpc
gyp ERR! node -v v12.22.12
gyp ERR! node-gyp -v v4.0.0
gyp ERR! not ok

Failed with exit code: 1
at SafeSubscriber._error (/home/jp/odas_web/node_modules/spawn-rx/lib/src/index.js:267:84)
at SafeSubscriber.__tryOrUnsub (/home/jp/odas_web/node_modules/rxjs/internal/Subscriber.js:205:16)
at SafeSubscriber.error (/home/jp/odas_web/node_modules/rxjs/internal/Subscriber.js:156:26)
at Subscriber._error (/home/jp/odas_web/node_modules/rxjs/internal/Subscriber.js:92:26)
at Subscriber.error (/home/jp/odas_web/node_modules/rxjs/internal/Subscriber.js:72:18)
at MapSubscriber.Subscriber._error (/home/jp/odas_web/node_modules/rxjs/internal/Subscriber.js:92:26)
at MapSubscriber.Subscriber.error (/home/jp/odas_web/node_modules/rxjs/internal/Subscriber.js:72:18)
at SafeSubscriber._next (/home/jp/odas_web/node_modules/spawn-rx/lib/src/index.js:242:65)
at SafeSubscriber.__tryOrUnsub (/home/jp/odas_web/node_modules/rxjs/internal/Subscriber.js:205:16)
at SafeSubscriber.next (/home/jp/odas_web/node_modules/rxjs/internal/Subscriber.js:143:22)
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! odas_studio@0.3.0 postinstall: electron-rebuild
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the odas_studio@0.3.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/jp/.npm/_logs/2025-02-12T17_22_11_253Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions