Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-red-contrib-harmony-websocket lässt sich nicht (mehr) installieren #402

Closed
UserRG opened this issue Sep 29, 2020 · 18 comments
Closed
Labels

Comments

@UserRG
Copy link

UserRG commented Sep 29, 2020

Leider habe ich mich heute verleiten lassen ein Update der o.g. Nodes zu machen.
War wohl ein Fehler. Die Installation schlug fehl und letztendlich war alles weg.
Ich habe daraufhin versucht alles neu zu Installieren, letztendlich auch per Putty.
Ich gehe davon aus, dass das genannte Problem mit den Binärmodulen zu tun hat!?

Die Verbindung mit dem Harmony Hub ist schon sehr nett und wäre echt schade, wenn es nicht mehr funktionieren würde.
Anbei das Log aus Putty... Falls es eine Lösung gibt, ich bin ganz Ohr...

npm install --save --no-package-lock --global-style --save-prefix="~" --produc
tion node-red-contrib-harmony-websocket
npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated b ecause it extends the now deprecated request package, see https://github.com/req uest/request/issues/3142
npm WARN deprecated request@2.88.2: request has been deprecated, see https://git hub.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported

bufferutil@4.0.1 install /usr/local/addons/redmatic/var/node_modules/node-red-contrib-harmony-websocket/node_modules/bufferutil
node-gyp-build

gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack at PythonFinder.fail (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:307:47)
gyp ERR! stack at PythonFinder.runChecks (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:136:21)
gyp ERR! stack at PythonFinder. (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:179:16)
gyp ERR! stack at PythonFinder.execFileCallback (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:271:16)
gyp ERR! stack at exithandler (child_process.js:315:5)
gyp ERR! stack at ChildProcess.errorhandler (child_process.js:327:5)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
gyp ERR! stack at onErrorNT (internal/child_process.js:464:16)
gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:80:21)
gyp ERR! System Linux 4.14.34
gyp ERR! command "/usr/local/addons/redmatic/bin/node" "/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/addons/redmatic/var/node_modules/node-red-contrib-harmony-websocket/node_modules/bufferutil
gyp ERR! node -v v14.9.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN node-red-project@0.0.1 No repository field.
npm WARN node-red-project@0.0.1 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bufferutil@4.0.1 install: node-gyp-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bufferutil@4.0.1 install 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! /usr/local/addons/redmatic/npm-cache/_logs/2020-09-29T21_02_37_735Z-debug.log

@Sineos
Copy link

Sineos commented Sep 30, 2020

Überall wo gyp vorkommt sind Binärmodule mit drin. Hier muss @hobbyquaker tätig werden.
Kannst du nicht vorübergehend die alte Version installieren? Die scheint ja ohne ausgekommen zu sein.

@UserRG
Copy link
Author

UserRG commented Sep 30, 2020 via email

@Sineos
Copy link

Sineos commented Sep 30, 2020

npm install --save --no-package-lock --global-style --save-prefix="~" --production node-red-contrib-harmony-websocket@2.0.0

Die gewünschte Version wird einfach mit @n.n.n (je nach Versionierung) an den Modulnamen angehängt

@UserRG
Copy link
Author

UserRG commented Sep 30, 2020 via email

@UserRG
Copy link
Author

UserRG commented Oct 1, 2020 via email

@UserRG
Copy link
Author

UserRG commented Oct 3, 2020

Als Lösung von lopelex/node-red-contrib-harmony-websocket erhielt ich folgenden Post:

replace request-promise with node-fetch
plz update to 2.2.4

Ich kann damit allerdings nicht viel anfangen...

@Sineos
Copy link

Sineos commented Oct 4, 2020

Soll heißen, dass lopelex die Abhängigkeit von request-promise mit node-fetch ersetzt hat und du die neue 2.2.4 probieren sollst.

@UserRG
Copy link
Author

UserRG commented Oct 4, 2020 via email

@hoeni
Copy link

hoeni commented Oct 18, 2020

Die neue Version 2.2.4 war aber in Redmatic erstmal nicht verfügbar, bis das auf den Node-Red-Index gepusht war. Ich habe ein Ticket aufgemacht (lopelex/node-red-contrib-harmony#16) und jetzt ist das jetzt auch in meiner Redmatic verfügbar, aber läßt sich dort nicht installieren:

-----------------------------------------------------------
2020-10-18T15:50:06.999Z installieren : node-red-contrib-harmony-websocket 2.2.4

2020-10-18T15:50:07.041Z npm install --no-package-lock --global-style --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-harmony-websocket@2.2.4
2020-10-18T15:50:42.661Z [out] 
2020-10-18T15:50:42.661Z [out] > bufferutil@4.0.1 install /usr/local/addons/redmatic/var/node_modules/node-red-contrib-harmony-websocket/node_modules/bufferutil
2020-10-18T15:50:42.661Z [out] > node-gyp-build
2020-10-18T15:50:42.661Z [out] 
2020-10-18T15:50:44.300Z [err] gyp
2020-10-18T15:50:44.301Z [err]  ERR! find Python 
2020-10-18T15:50:44.301Z [err] gyp ERR! find Python Python is not set from command line or npm configuration
2020-10-18T15:50:44.301Z [err] gyp ERR!
2020-10-18T15:50:44.301Z [err]  find Python Python is not set from environment variable PYTHON
2020-10-18T15:50:44.301Z [err] gyp ERR! find Python checking if "python" can be used
2020-10-18T15:50:44.302Z [err] gyp ERR! find Python - "python" is not in PATH or produced an error
2020-10-18T15:50:44.302Z [err] gyp ERR! find Python
2020-10-18T15:50:44.302Z [err]  checking if "python2" can be used
2020-10-18T15:50:44.302Z [err] gyp ERR!
2020-10-18T15:50:44.302Z [err]  find Python - "python2" is not in PATH or produced an error
2020-10-18T15:50:44.302Z [err] gyp 
2020-10-18T15:50:44.302Z [err] ERR! find Python checking if "python3" can be used
2020-10-18T15:50:44.302Z [err] gyp 
2020-10-18T15:50:44.303Z [err] ERR! find Python - "python3" is not in PATH or produced an error
2020-10-18T15:50:44.303Z [err] gyp
2020-10-18T15:50:44.303Z [err]  ERR! find Python 
2020-10-18T15:50:44.303Z [err] gyp ERR! find Python **********************************************************
2020-10-18T15:50:44.303Z [err] gyp
2020-10-18T15:50:44.303Z [err]  ERR! find Python You need to install the latest version of Python.
2020-10-18T15:50:44.303Z [err] gyp
2020-10-18T15:50:44.303Z [err]  ERR! find Python Node-gyp should be able to find and use Python. If not,
2020-10-18T15:50:44.303Z [err] gyp
2020-10-18T15:50:44.304Z [err]  ERR! find Python you can try one of the following options:
2020-10-18T15:50:44.304Z [err] gyp ERR! find Python
2020-10-18T15:50:44.304Z [err]  - Use the switch --python="/path/to/pythonexecutable"
2020-10-18T15:50:44.304Z [err] gyp ERR!
2020-10-18T15:50:44.304Z [err]  find Python   (accepted by both node-gyp and npm)
2020-10-18T15:50:44.304Z [err] gyp
2020-10-18T15:50:44.304Z [err]  ERR! find Python
2020-10-18T15:50:44.304Z [err]  - Set the environment variable PYTHON
2020-10-18T15:50:44.304Z [err] gyp 
2020-10-18T15:50:44.304Z [err] ERR! find Python - Set the npm configuration variable python:
2020-10-18T15:50:44.305Z [err] gyp ERR!
2020-10-18T15:50:44.305Z [err]  find Python   npm config set python "/path/to/pythonexecutable"
2020-10-18T15:50:44.305Z [err] gyp ERR! 
2020-10-18T15:50:44.305Z [err] find Python For more information consult the documentation at:
2020-10-18T15:50:44.305Z [err] gyp
2020-10-18T15:50:44.305Z [err]  ERR! find Python
2020-10-18T15:50:44.305Z [err]  https://github.com/nodejs/node-gyp#installation
2020-10-18T15:50:44.305Z [err] gyp 
2020-10-18T15:50:44.305Z [err] ERR! find Python **********************************************************
2020-10-18T15:50:44.305Z [err] gyp ERR!
2020-10-18T15:50:44.305Z [err]  find Python 
2020-10-18T15:50:44.308Z [err] gyp
2020-10-18T15:50:44.308Z [err]  ERR! configure error 
2020-10-18T15:50:44.309Z [err] gyp 
2020-10-18T15:50:44.310Z [err] ERR! stack Error: Could not find any Python installation to use
2020-10-18T15:50:44.310Z [err] gyp 
2020-10-18T15:50:44.310Z [err] ERR! stack     at PythonFinder.fail (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:307:47)
2020-10-18T15:50:44.310Z [err] gyp ERR! 
2020-10-18T15:50:44.310Z [err] stack     at PythonFinder.runChecks (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:136:21)
2020-10-18T15:50:44.310Z [err] gyp
2020-10-18T15:50:44.310Z [err]  ERR! stack
2020-10-18T15:50:44.310Z [err]      at PythonFinder.<anonymous> (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:179:16)
2020-10-18T15:50:44.310Z [err] gyp 
2020-10-18T15:50:44.310Z [err] ERR! stack     at PythonFinder.execFileCallback (/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:271:16)
2020-10-18T15:50:44.310Z [err] gyp ERR!
2020-10-18T15:50:44.311Z [err]  stack     at exithandler (child_process.js:315:5)
2020-10-18T15:50:44.311Z [err] gyp ERR!
2020-10-18T15:50:44.311Z [err]  stack     at ChildProcess.errorhandler (child_process.js:327:5)
2020-10-18T15:50:44.311Z [err] gyp ERR! 
2020-10-18T15:50:44.311Z [err] stack     at ChildProcess.emit (events.js:314:20)
2020-10-18T15:50:44.311Z [err] gyp
2020-10-18T15:50:44.311Z [err]  ERR! stack
2020-10-18T15:50:44.311Z [err]      at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
2020-10-18T15:50:44.311Z [err] gyp ERR!
2020-10-18T15:50:44.312Z [err]  stack     at onErrorNT (internal/child_process.js:464:16)
2020-10-18T15:50:44.312Z [err] gyp ERR! 
2020-10-18T15:50:44.312Z [err] stack     at processTicksAndRejections (internal/process/task_queues.js:80:21)
2020-10-18T15:50:44.317Z [err] gyp ERR!
2020-10-18T15:50:44.318Z [err]  System Linux 5.4.44
2020-10-18T15:50:44.318Z [err] gyp ERR! 
2020-10-18T15:50:44.318Z [err] command "/usr/local/addons/redmatic/bin/node" "/usr/local/addons/redmatic/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-10-18T15:50:44.318Z [err] gyp 
2020-10-18T15:50:44.318Z [err] ERR! cwd
2020-10-18T15:50:44.318Z [err]  /usr/local/addons/redmatic/var/node_modules/node-red-contrib-harmony-websocket/node_modules/bufferutil
2020-10-18T15:50:44.318Z [err] gyp
2020-10-18T15:50:44.318Z [err]  ERR! node -v
2020-10-18T15:50:44.318Z [err]  v14.13.1
2020-10-18T15:50:44.318Z [err] gyp
2020-10-18T15:50:44.318Z [err]  ERR! node-gyp -v
2020-10-18T15:50:44.318Z [err]  v5.1.0
2020-10-18T15:50:44.318Z [err] gyp
2020-10-18T15:50:44.319Z [err]  ERR! 
2020-10-18T15:50:44.319Z [err] not ok 
2020-10-18T15:50:48.589Z [err] npm 
2020-10-18T15:50:48.590Z [err] WARN node-red-project@0.0.1 No repository field.
2020-10-18T15:50:48.634Z [err] npm WARN
2020-10-18T15:50:48.634Z [err]  node-red-project@0.0.1 No license field.
2020-10-18T15:50:48.635Z [err] 
2020-10-18T15:50:48.819Z [err] npm ERR!
2020-10-18T15:50:48.819Z [err]  code ELIFECYCLE
2020-10-18T15:50:48.819Z [err] npm ERR! 
2020-10-18T15:50:48.819Z [err] errno 1
2020-10-18T15:50:48.838Z [err] npm 
2020-10-18T15:50:48.838Z [err] ERR! bufferutil@4.0.1 install: `node-gyp-build`
2020-10-18T15:50:48.838Z [err] npm ERR! Exit status 1
2020-10-18T15:50:48.838Z [err] npm ERR!
2020-10-18T15:50:48.838Z [err]  
2020-10-18T15:50:48.838Z [err] npm
2020-10-18T15:50:48.839Z [err]  ERR!
2020-10-18T15:50:48.839Z [err]  Failed at the bufferutil@4.0.1 install script.
2020-10-18T15:50:48.839Z [err] npm
2020-10-18T15:50:48.839Z [err]  ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-10-18T15:50:48.929Z [err] 
2020-10-18T15:50:48.930Z [err] npm ERR! A complete log of this run can be found in:
2020-10-18T15:50:48.930Z [err] npm ERR!
2020-10-18T15:50:48.930Z [err]      /usr/local/addons/redmatic/var/npm-cache/_logs/2020-10-18T15_50_48_885Z-debug.log
2020-10-18T15:50:48.982Z rc=1

@Sineos
Copy link

Sineos commented Oct 18, 2020

Ist leider immer noch abhängig von Binärmodulen, die sich auf RedMatic nicht direkt installieren lassen.
Hier kann nur @hobbyquaker helfen.

@hoeni
Copy link

hoeni commented Oct 18, 2020

Hat jemand einen Pointer für mich, woran das konkret scheitert, oder was man dafür machen muss (vielleicht kann ich auch helfen)? Ich mach zwar recht viel mit NodeJS und NPM, aber nur auf "haushaltsüblichen" Architekturen, kenne also die RedMatic-Spezialitäten leider nicht?

@Sineos
Copy link

Sineos commented Oct 18, 2020

Siehe auch #404

@gungam
Copy link

gungam commented Oct 30, 2020

stehe leider vor dem selben Problem und würde mich über eine Lösung freuen.

@ghost
Copy link

ghost commented Oct 31, 2020

Kann mich dem nur anschließen. Die Integration von Harmony war für mich ein wichtiger Baustein in der Automatisierung meines Smart Home

@dbingler
Copy link

dbingler commented Nov 1, 2020

Gleiches Problem bei mir mit Redmatic Version 7.0.0. Die manuelle Installation von node-red-contrib-harmony-websocket 2.2.3 funktioniert leider auch nicht mehr. Wenn dann müsste man wahrscheinlich RedMatic downgraden.
Ich hoffe es gibt bald eine Lösung.

@kwithus
Copy link

kwithus commented Apr 26, 2021

Ich habe jetzt bei mehreren Nodes offenbar d’en gleichen Fehler „ You need to install the latest version of Python“ z.B. beim node-red-contrib-modbus beim Update von 5.13.3 auf 5.14.
Nutze Redmatic 7.2.1
Gibt es nie reine Öösung?

@Sineos
Copy link

Sineos commented Apr 26, 2021

Nein, die gibt es nicht.
Alle "contrib" Pakete, welche unter https://github.com/rdmtc/RedMatic/releases/tag/v7.2.1 gelistet sind, lassen sich nur aktualisieren, wenn es eine neue RedMatic mit entsprechend erneuerten Paketen gibt.

@kwithus
Copy link

kwithus commented Apr 27, 2021

Danke für die Antwort, hatte ich mittlerweile auch schon so herausbekommen. Meine Suche vor dem Stellen der Frage war offenbar nicht gründlich genug gewesen ;-).
Aber egal, ich habe jetzt verstanden woran es liegt und warte einfach auf das nächste Update von Redmatic. Ist auch kein kritisches Ding, kann also warten.
Gruß
K-H

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

7 participants