Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst]Probleme mit mihome-vacuum adapter und canvas

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst]Probleme mit mihome-vacuum adapter und canvas

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Modjo last edited by Modjo

      Liebe Community,

      leider war ich dazu gezwungen meinen ioBroker über ein Backup wiederherzustellen.
      Nachdem das Backup auch sauber eingespielt wurde, hat auch alles soweit funktioniert, nur mein mihome-vacuum adapter nicht mehr.
      In meinem Adapter oder Instanzen taucht er gar nicht mehr auf. Ich habe versucht ihn manuell zu installieren:

      pi@RPI3:/opt/iobroker $ sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
      Paketlisten werden gelesen... Fertig
      Abhängigkeitsbaum wird aufgebaut.
      Statusinformationen werden eingelesen.... Fertig
      build-essential ist schon die neueste Version (12.3).
      libgif-dev ist schon die neueste Version (5.1.4-0.4).
      libjpeg-dev ist schon die neueste Version (1:1.5.1-2+deb9u1).
      libpango1.0-dev ist schon die neueste Version (1.40.5-1).
      librsvg2-dev ist schon die neueste Version (2.40.21-0+deb9u1).
      libcairo2-dev ist schon die neueste Version (1.14.8-1+rpi1).
      0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
      
      

      das war bereits installiert und gab keine Fehler.

      cd /opt/iobroker
      sudo npm install canvas --unsafe-perm=true
      

      Ergebnis ist wie folgt:

      pi@RPI3:/opt/iobroker $ sudo npm install canvas --unsafe-perm=true
      npm WARN deprecated bcrypt@3.0.8: versions < v5.0.0 do not handle NUL in passwords properly
      npm WARN deprecated bcrypt@3.0.6: versions < v5.0.0 do not handle NUL in passwords properly
      npm WARN deprecated node-pre-gyp@0.14.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
      npm WARN deprecated node-pre-gyp@0.12.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
      npm ERR! code 1
      npm ERR! path /opt/iobroker/node_modules/canvas
      npm ERR! command failed
      npm ERR! command sh -c node-pre-gyp install --fallback-to-build
      npm ERR! Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
      npm ERR! node-pre-gyp info it worked if it ends with ok
      npm ERR! node-pre-gyp info using node-pre-gyp@1.0.8
      npm ERR! node-pre-gyp info using node@12.22.9 | linux | arm
      npm ERR! node-pre-gyp info check checked for "/opt/iobroker/node_modules/canvas/build/Release/canvas.node" (not found)
      npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v72-linux-glibc-arm.tar.gz
      npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v72-linux-glibc-arm.tar.gz
      npm ERR! node-pre-gyp WARN Pre-built binaries not installable for canvas@2.8.0 and node@12.22.9 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
      npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v72-linux-glibc-arm.tar.gz
      npm ERR! gyp info it worked if it ends with ok
      npm ERR! gyp info using node-gyp@8.4.1
      npm ERR! gyp info using node@12.22.9 | linux | arm
      npm ERR! gyp info ok
      npm ERR! gyp info it worked if it ends with ok
      npm ERR! gyp info using node-gyp@8.4.1
      npm ERR! gyp info using node@12.22.9 | linux | arm
      npm ERR! gyp ERR! find Python
      npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
      npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
      npm ERR! gyp ERR! find Python checking if "python3" can be used
      npm ERR! gyp ERR! find Python - executable path is "/usr/bin/python3"
      npm ERR! gyp ERR! find Python - version is "3.5.3"
      npm ERR! gyp ERR! find Python - version is 3.5.3 - should be >=3.6.0
      npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
      npm ERR! gyp ERR! find Python checking if "python" can be used
      npm ERR! gyp ERR! find Python - executable path is "/usr/bin/python"
      npm ERR! gyp ERR! find Python - version is "2.7.13"
      npm ERR! gyp ERR! find Python - version is 2.7.13 - should be >=3.6.0
      npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
      npm ERR! gyp ERR! find Python
      npm ERR! gyp ERR! find Python **********************************************************
      npm ERR! gyp ERR! find Python You need to install the latest version of Python.
      npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
      npm ERR! gyp ERR! find Python you can try one of the following options:
      npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
      npm ERR! gyp ERR! find Python   (accepted by both node-gyp and npm)
      npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
      npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
      npm ERR! gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
      npm ERR! gyp ERR! find Python For more information consult the documentation at:
      npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
      npm ERR! gyp ERR! find Python **********************************************************
      npm ERR! gyp ERR! find Python
      npm ERR! gyp ERR! configure error
      npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
      npm ERR! gyp ERR! stack     at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
      npm ERR! gyp ERR! stack     at PythonFinder.runChecks (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
      npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:266:16)
      npm ERR! gyp ERR! stack     at PythonFinder.execFileCallback (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:297:7)
      npm ERR! gyp ERR! stack     at ChildProcess.exithandler (child_process.js:299:7)
      npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
      npm ERR! gyp ERR! stack     at maybeClose (internal/child_process.js:1022:16)
      npm ERR! gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:444:11)
      npm ERR! gyp ERR! stack     at Socket.emit (events.js:314:20)
      npm ERR! gyp ERR! stack     at Pipe.<anonymous> (net.js:675:12)
      npm ERR! gyp ERR! System Linux 4.19.66-v7+
      npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/opt/iobroker/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
      npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/canvas
      npm ERR! gyp ERR! node -v v12.22.9
      npm ERR! gyp ERR! node-gyp -v v8.4.1
      npm ERR! gyp ERR! not ok
      npm ERR! node-pre-gyp ERR! build error
      npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
      npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/opt/iobroker/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
      npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
      npm ERR! node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1022:16)
      npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
      npm ERR! node-pre-gyp ERR! System Linux 4.19.66-v7+
      npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
      npm ERR! node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvas
      npm ERR! node-pre-gyp ERR! node -v v12.22.9
      npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.8
      npm ERR! node-pre-gyp ERR! not ok
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /root/.npm/_logs/2022-01-16T18_46_23_961Z-debug-0.log
      

      npm ls canvas gibt folgendes aus:

      pi@RPI3:/opt/iobroker $ npm ls canvas
      iobroker.inst@3.0.0 /opt/iobroker
      └── (empty)
      

      Weitere Infos:

      pi@RPI3:/opt/iobroker $ node -v
      v12.22.9
      pi@RPI3:/opt/iobroker $ nodejs -v
      v12.22.9
      pi@RPI3:/opt/iobroker $ npm -v
      8.3.1
      pi@RPI3:/opt/iobroker $
      

      Über eure Unterstützung würde ich mich sehr freuen.

      Gruß
      Modjo

      da_Woody Thomas Braun 2 Replies Last reply Reply Quote 0
      • da_Woody
        da_Woody @Modjo last edited by

        @modjo sagte in Probleme mit mihome-vacuum adapter und canvas:

        Über eure Unterstützung würde ich mich sehr freuen.

        und ich mich, wenn du die sufu verwenden würdest. das thema wird in 2 topics diskutiert...

        1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Modjo last edited by Thomas Braun

          @modjo

          sudo npm
          

          Falsch, npm wird nie als root (per sudo) ausgeführt.
          Dein Python ist zu alt, dein nodeJS ist nicht aktuell, dafür ist dein npm aber ZU aktuell, also krumm installiert. Dann fährst du vermutlich da eine tote Distribution spazieren, vermutlich ein Debian Stretch.

          Kurz: Bei dem Chaos kann das nix werden.

          Wenn die Grundvoraussetzungen erfüllt werden muss auch canvas nicht zu Fuß installiert werden. Das passiert dann automatisch in Hintergrund.

          1 Reply Last reply Reply Quote 0
          • M
            Modjo last edited by

            @da_woody said in Probleme mit mihome-vacuum adapter und canvas:

            @modjo sagte in Probleme mit mihome-vacuum adapter und canvas:

            Über eure Unterstützung würde ich mich sehr freuen.

            und ich mich, wenn du die sufu verwenden würdest. das thema wird in 2 topics diskutiert...

            @da_Woody Grund zur Freude, denn die hatte ich zuvor benutzt. Es hat mich aber leider nicht zur Lösung geführt.

            @thomas-braun said in Probleme mit mihome-vacuum adapter und canvas:

            @modjo

            sudo npm
            

            Falsch, npm wird nie als root (per sudo) ausgeführt.
            Dein Python ist zu alt, dein nodeJS ist nicht aktuell, dafür ist dein npm aber ZU aktuell, also krumm installiert. Dann fährst du vermutlich da eine tote Distribution spazieren, vermutlich ein Debian Stretch.

            Kurz: Bei dem Chaos kann das nix werden.

            Wenn die Grundvoraussetzungen erfüllt werden muss auch canvas nicht zu Fuß installiert werden. Das passiert dann automatisch in Hintergrund.

            @Thomas-Braun Danke für deine Nachricht. Folgende Schritte habe ich nun ausgeführt:

            • Upgrade von Stretch auf Buster -> Kein Erfolg

            • update node auf 17.x -> Kein Erfolg

            • Upgrade von Buster auf Bullseye -> Erfolg! Jetzt konnte ich canvas erfolgreich installieren und meine mihome-vacuum.0 Instanz war wieder verfügbar.

            Demnach ist es nun gelöst.

            Viele Grüße
            Modjo

            da_Woody Thomas Braun 2 Replies Last reply Reply Quote 0
            • da_Woody
              da_Woody @Modjo last edited by

              @modjo sagte in [gelöst]Probleme mit mihome-vacuum adapter und canvas:

              Upgrade von Buster auf Bullseye

              aha, meine läuft nach wie vor unter debian10... und ich konnte canvas aktualisieren. seltsam...
              wird bei dir die karte jetzt auch aktualisiert?

              1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Modjo last edited by

                @modjo sagte in [gelöst]Probleme mit mihome-vacuum adapter und canvas:

                update node auf 17.x -> Kein Erfolg

                Node 17 (inkl dem npm8 das mit kommt) ist zu hoch!
                Installier node14 (inkl. npm6).

                1 Reply Last reply Reply Quote 0
                • M
                  Modjo last edited by

                  @da_woody said in [gelöst]Probleme mit mihome-vacuum adapter und canvas:

                  @modjo sagte in [gelöst]Probleme mit mihome-vacuum adapter und canvas:

                  Upgrade von Buster auf Bullseye

                  aha, meine läuft nach wie vor unter debian10... und ich konnte canvas aktualisieren. seltsam...
                  wird bei dir die karte jetzt auch aktualisiert?

                  Ja wird sie.

                  @thomas-braun said in [gelöst]Probleme mit mihome-vacuum adapter und canvas:

                  @modjo sagte in [gelöst]Probleme mit mihome-vacuum adapter und canvas:

                  update node auf 17.x -> Kein Erfolg

                  Node 17 (inkl dem npm8 das mit kommt) ist zu hoch!
                  Installier node14 (inkl. npm6).

                  Kann ich noch machen. Was ergeben sich denn jetzt genau für Nachteile, wenn ich auf der hohen Version bleibe?

                  Gruß

                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @Modjo last edited by

                    @modjo sagte in [gelöst]Probleme mit mihome-vacuum adapter und canvas:

                    Was ergeben sich denn jetzt genau für Nachteile, wenn ich auf der hohen Version bleibe?

                    'Komisches' Verhalten bei Adapter-Installationen und npm-Aktionen.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Support us

                    ioBroker
                    Community Adapters
                    Donate
                    FAQ Cloud / IOT
                    HowTo: Node.js-Update
                    HowTo: Backup/Restore
                    Downloads
                    BLOG

                    940
                    Online

                    31.9k
                    Users

                    80.2k
                    Topics

                    1.3m
                    Posts

                    3
                    8
                    753
                    Loading More Posts
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes
                    Reply
                    • Reply as topic
                    Log in to reply
                    Community
                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                    The ioBroker Community 2014-2023
                    logo