Ich brauch mal eure Hilfe. Über Weihnachten habe ich mich in ioBroker reingefuchst (bin eher Laie).
Mit den hier beschriebenen Workarounds habe ich mein System auf folgenden Stand gebracht:
PLATTFORM: WINDOWS
RAM: 3.5 GB
NODE.JS: V14.18.2
NPM: 6.14.15
Eigentlich lief auch alles ganz gut. Seit ein paar Wochen habe ich aber das Problem das der History Adapter beim öffnen von historisierten Datenpunkten mit folgender Fehlermeldung abstürzt:
react-dom.production.min.js:216 TypeError: o.getHours is not a function
at new s (:8101/static/js/15.604fadf3.chunk.js:1:54837)
at zc (5.041e7077.chunk.js:2:5611029)
at Uo (5.041e7077.chunk.js:2:5630495)
at Zi (5.041e7077.chunk.js:2:5674028)
at jl (5.041e7077.chunk.js:2:5660196)
at Sl (5.041e7077.chunk.js:2:5660124)
at Cl (5.041e7077.chunk.js:2:5659987)
at zl (5.041e7077.chunk.js:2:5656953)
at 5.041e7077.chunk.js:2:5606447
at t.unstable_runWithPriority (5.041e7077.chunk.js:2:5689657)
Beim Installieren von neuen Adaptern gibt es wohl ein Problem mit Python:
$ iobroker add alias-manager auto --host tom(Leonberg)
NPM version: 6.14.15
npm install iobroker.alias-manager@1.2.4 --loglevel error (System call)
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 checking if the py launcher can be used to find Python 2 gyp ERR! find Python - "py.exe" is not in PATH or produced an error gyp ERR! find Python checking if Python is C:\Python27\python.exe gyp ERR! find Python - "C:\Python27\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Python37\python.exe gyp ERR! find Python - "C:\Python37\python.exe" could not be run 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="C:\Path\To\python.exe" 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 "C:\Path\To\python.exe" 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 (C:\Program Files\iobroker\Leonberg\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47)
gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\iobroker\Leonberg\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\iobroker\Leonberg\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16) gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\iobroker\Leonberg\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16) gyp ERR! stack at exithandler (child_process.js:390:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:402:5) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:280:12) gyp ERR! stack at onErrorNT (internal/child_process.js:469:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:82:21) gyp ERR! System Windows_NT 10.0.19043 gyp ERR! command "C:\Program Files\iobroker\Leonberg\nodejs\node.exe" "C:\Program Files\iobroker\Leonberg\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files\iobroker\Leonberg\node_modules\serialport gyp ERR! node -v v14.18.2 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok
Ich bin über jeden Hinweis dankbar ![:-) 🙂](https://forum.iobroker.net/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=23itn9135ab)
Thomas