coolchip / node-red-contrib-smartmeter

Node to provide data from smartmeters
MIT License
11 stars 8 forks source link

Install here not possible with Node-Red Version 3.1.7 #64

Open Presley2 opened 6 months ago

Presley2 commented 6 months ago

Hi,

i have issues when wanting to use the smartmeter node with newer versions of node red. I updated my node-red on home assistant to version 3.1.7. Installation of smartmeter node the was not passible.

following is the log when trying to install. LOG


2024-03-24T11:10:56.809Z Installieren : node-red-contrib-smartmeter 0.6.3

2024-03-24T11:10:56.910Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-smartmeter@0.6.3 2024-03-24T11:10:57.596Z [err] npm 2024-03-24T11:10:57.596Z [err] WARN config 2024-03-24T11:10:57.596Z [err] production Use --omit=dev instead. 2024-03-24T11:11:04.980Z [err] npm 2024-03-24T11:11:04.981Z [err] WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. 2024-03-24T11:11:05.039Z [err] npm WARN 2024-03-24T11:11:05.039Z [err] deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 2024-03-24T11:11:06.152Z [err] npm ERR! 2024-03-24T11:11:06.152Z [err] code 1 2024-03-24T11:11:06.152Z [err] npm ERR! path /config/node_modules/@serialport/bindings 2024-03-24T11:11:06.155Z [err] npm ERR! 2024-03-24T11:11:06.155Z [err] command failed 2024-03-24T11:11:06.155Z [err] npm ERR! command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild 2024-03-24T11:11:06.155Z [err] npm 2024-03-24T11:11:06.156Z [err] ERR! prebuild-install warn install No prebuilt binaries found (target=18.19.1 runtime=node arch=x64 libc=musl platform=linux) 2024-03-24T11:11:06.156Z [err] npm ERR! 2024-03-24T11:11:06.156Z [err] gyp info it worked if it ends with ok 2024-03-24T11:11:06.156Z [err] npm 2024-03-24T11:11:06.156Z [err] ERR! gyp info using node-gyp@10.0.1 2024-03-24T11:11:06.156Z [err] npm ERR! 2024-03-24T11:11:06.156Z [err] gyp info using node@18.19.1 | linux | x64 2024-03-24T11:11:06.156Z [err] npm ERR! 2024-03-24T11:11:06.156Z [err] gyp ERR! find Python 2024-03-24T11:11:06.156Z [err] npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration 2024-03-24T11:11:06.157Z [err] npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON 2024-03-24T11:11:06.157Z [err] npm ERR! gyp ERR! find Python checking if "python3" can be used 2024-03-24T11:11:06.157Z [err] npm 2024-03-24T11:11:06.157Z [err] ERR! gyp ERR! find Python - executable path is "" 2024-03-24T11:11:06.157Z [err] npm 2024-03-24T11:11:06.157Z [err] ERR! gyp ERR! find Python - "" could not be run 2024-03-24T11:11:06.157Z [err] npm ERR! 2024-03-24T11:11:06.157Z [err] gyp ERR! find Python checking if "python" can be used 2024-03-24T11:11:06.157Z [err] npm ERR! gyp ERR! find Python - executable path is "" 2024-03-24T11:11:06.157Z [err] npm ERR! gyp ERR! find Python - "" could not be run 2024-03-24T11:11:06.157Z [err] npm 2024-03-24T11:11:06.157Z [err] ERR! gyp ERR! find Python 2024-03-24T11:11:06.157Z [err] npm ERR! 2024-03-24T11:11:06.158Z [err] gyp ERR! find Python ** 2024-03-24T11:11:06.158Z [err] npm ERR! 2024-03-24T11:11:06.158Z [err] gyp ERR! find Python You need to install the latest version of Python. 2024-03-24T11:11:06.158Z [err] npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not, 2024-03-24T11:11:06.158Z [err] npm ERR! gyp ERR! find Python you can try one of the following options: 2024-03-24T11:11:06.158Z [err] npm 2024-03-24T11:11:06.158Z [err] ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable" 2024-03-24T11:11:06.158Z [err] npm 2024-03-24T11:11:06.158Z [err] ERR! gyp ERR! find Python (accepted by both node-gyp and npm) 2024-03-24T11:11:06.158Z [err] npm ERR! 2024-03-24T11:11:06.158Z [err] gyp ERR! find Python - Set the environment variable PYTHON 2024-03-24T11:11:06.158Z [err] npm ERR! 2024-03-24T11:11:06.158Z [err] gyp ERR! find Python - Set the npm configuration variable python: 2024-03-24T11:11:06.158Z [err] npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable" 2024-03-24T11:11:06.158Z [err] npm 2024-03-24T11:11:06.158Z [err] ERR! gyp ERR! find Python For more information consult the documentation at: 2024-03-24T11:11:06.158Z [err] npm 2024-03-24T11:11:06.158Z [err] ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation 2024-03-24T11:11:06.158Z [err] npm ERR! 2024-03-24T11:11:06.159Z [err] gyp ERR! find Python ** 2024-03-24T11:11:06.159Z [err] npm ERR! 2024-03-24T11:11:06.159Z [err] gyp ERR! find Python 2024-03-24T11:11:06.159Z [err] npm ERR! gyp ERR! configure error 2024-03-24T11:11:06.159Z [err] npm ERR! gyp ERR! stack Error: Could not find any Python installation to use 2024-03-24T11:11:06.159Z [err] npm 2024-03-24T11:11:06.159Z [err] ERR! gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:306:11) 2024-03-24T11:11:06.159Z [err] npm 2024-03-24T11:11:06.159Z [err] ERR! gyp ERR! stack at PythonFinder.findPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:164:17) 2024-03-24T11:11:06.159Z [err] npm ERR! 2024-03-24T11:11:06.159Z [err] gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2024-03-24T11:11:06.159Z [err] npm ERR! 2024-03-24T11:11:06.159Z [err] gyp ERR! stack at async configure (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:23:18) 2024-03-24T11:11:06.159Z [err] npm ERR! gyp ERR! stack at async run (/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:81:18) 2024-03-24T11:11:06.159Z [err] npm ERR! gyp ERR! System Linux 6.6.20-haos 2024-03-24T11:11:06.159Z [err] npm 2024-03-24T11:11:06.160Z [err] ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 2024-03-24T11:11:06.160Z [err] npm 2024-03-24T11:11:06.160Z [err] ERR! gyp ERR! cwd /config/node_modules/@serialport/bindings 2024-03-24T11:11:06.160Z [err] npm ERR! 2024-03-24T11:11:06.160Z [err] gyp ERR! node -v v18.19.1 2024-03-24T11:11:06.160Z [err] npm ERR! 2024-03-24T11:11:06.160Z [err] gyp ERR! node-gyp -v v10.0.1 2024-03-24T11:11:06.160Z [err] npm ERR! 2024-03-24T11:11:06.160Z [err] gyp ERR! not ok 2024-03-24T11:11:06.163Z [err] 2024-03-24T11:11:06.163Z [err] npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-03-24T11_10_57_511Z-debug-0.log 2024-03-24T11:11:06.178Z rc=1

Thanks for your help

Kind regards Michael