Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. can't find python

    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

    UNSOLVED can't find python

    This topic has been deleted. Only users with topic management privileges can see it.
    • sigi234
      sigi234 Forum Testing Most Active @bahnuhr last edited by

      @bahnuhr

      Windows Version installieren.

      https://www.python.org/downloads/release/python-2710/

      bahnuhr 2 Replies Last reply Reply Quote 0
      • bahnuhr
        bahnuhr Forum Testing Most Active @sigi234 last edited by bahnuhr

        @sigi234

        Die ist aber doch schon installiert mit "windows-build-tools"

        C:\iobroker>where python
        C:\Users\Dieter\.windows-build-tools\python27\python.exe
        C:\Users\Dieter\AppData\Local\Microsoft\WindowsApps\python.exe
        
        1 Reply Last reply Reply Quote 0
        • bahnuhr
          bahnuhr Forum Testing Most Active @sigi234 last edited by

          @sigi234 sagte in can't find python:

          @bahnuhr

          Windows Version installieren.

          https://www.python.org/downloads/release/python-2710/

          Habs trotzdem mal installiert, keine Veränderung.

          Weiterhin folgende Fehlermeldung!

          $ ./iobroker add sql  --host HP-Prodesk-400
          NPM version: 6.4.1
          npm install iobroker.sql@1.9.4 --loglevel error --prefix "C:/iobroker" (System call)
          gyp
           ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.gyp ERR! stack     at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:484:19)gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:509:16)gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:153:21)
          gyp ERR! System Windows_NT 10.0.18363gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"gyp ERR! cwd C:\iobroker\node_modules\iobroker.sql\node_modules\mmmagicgyp ERR! node -v v10.15.3
          gyp ERR! node-gyp -v v3.8.0gyp ERR!
           not ok 
          npm
           ERR! code ELIFECYCLEnpm ERR! errno 1
          npm
           ERR! mmmagic@0.5.3 install: `node-gyp rebuild`npm ERR! Exit status 1
          npm ERR!
           npm
           
          ERR! Failed at the mmmagic@0.5.3 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!     C:\Windows\system32\config\systemprofile\AppData\Roaming\npm-cache\_logs\2020-01-26T07_26_25_684Z-debug.log
          ERROR: host.HP-Prodesk-400 Cannot install iobroker.sql@1.9.4: 1
          ERROR: process exited with code 25
          
          1 Reply Last reply Reply Quote 0
          • bahnuhr
            bahnuhr Forum Testing Most Active last edited by

            habe es auch mit verschiedenen node Versionen (8.15, 10.18, etc) probiert.
            Klappt nicht.

            Noch jemand eine Idee ?

            SBorg 1 Reply Last reply Reply Quote 0
            • SBorg
              SBorg Forum Testing Most Active @bahnuhr last edited by SBorg

              @bahnuhr Taucht Python denn auch im Pfad auf? DOS-Eingabe: path
              Falls nicht, versuche mal:

              • WIN + Pause
              • Erweiterte Systemeinstellungen
              • Umgebungsvariablen
              • bei "Systemvariablen" Path anklicken + bearbeiten
              • C:\Users\Dieter.windows-build-tools\python27\python.exe hinzufügen

              Soweit ich mich noch erinnern kann übernimmt er "Systemvariablen" nur beim Start? --> reboot

              bahnuhr 1 Reply Last reply Reply Quote 0
              • bahnuhr
                bahnuhr Forum Testing Most Active @SBorg last edited by

                @SBorg sagte in can't find python:

                @bahnuhr Taucht Python denn auch im Pfad auf? DOS-Eingabe: path
                Falls nicht, versuche mal:

                • WIN + Pause
                • Erweiterte Systemeinstellungen
                • Umgebungsvariablen
                • bei "Systemvariablen" Path anklicken + bearbeiten
                • C:\Users\Dieter.windows-build-tools\python27\python.exe hinzufügen

                Soweit ich mich noch erinnern kann übernimmt er "Systemvariablen" nur beim Start? --> reboot

                Bei Win+Pause tut sich gar nichts.

                In den Umgebungsvariablen hab ich dieses:
                c51ab251-04be-4dd4-bee8-b9714d1d381d-image.png

                Sieht doch ok aus.

                Noch ne Idee ?

                AlCalzone 1 Reply Last reply Reply Quote 0
                • AlCalzone
                  AlCalzone Developer @bahnuhr last edited by

                  @bahnuhr sagte in can't find python:

                  Noch ne Idee ?

                  Im ioBroker-Ordner eine Datei .npmrc anlegen, falls sie nicht schon existiert und folgende Zeile einfügen:

                  python=C:\Users\Dieter.windows-build-tools\python27\python.exe
                  

                  Klappt so zumindest auf FreeBSD, daher schätze ich, dass es auf Windows auch klappt.


                  Aber sollte das nicht auch ohne manuelles Eingreifen funktionieren? @Stabilostick

                  bahnuhr 2 Replies Last reply Reply Quote 0
                  • bahnuhr
                    bahnuhr Forum Testing Most Active @AlCalzone last edited by bahnuhr

                    @AlCalzone sagte in can't find python:

                    Aber sollte das nicht auch ohne manuelles Eingreifen funktionieren? @Stabilostick

                    Das dachte ich auch.
                    Und der Hinweis kam auch nur bei der Installation von "sql". Die anderen Adapter liefen einwandfrei durch.

                    Wäre schön wenn wir dies lösen könnte.

                    @Homoran
                    @apollon77
                    @AlCalzone
                    @Stabilostick

                    Würde auch anbieten, dass ich die Beschreibung "manuelle Installation" auf iobroker.de mal überarbeiten könnte (wenn gewünscht). Denn diese funktioniert ja nicht.

                    apollon77 1 Reply Last reply Reply Quote 0
                    • bahnuhr
                      bahnuhr Forum Testing Most Active last edited by

                      Und wie ihr hier seht:
                      https://forum.iobroker.net/topic/29244/iob-auf-win-10-manuelle-installation/4

                      klappt die manuelle Installation bei node 10.18. und npm 6.13 nicht mehr.
                      Es kommt da ständig der Hinweis "semver".

                      Vielleicht könnten wir auch dies lösen.

                      Würde mich als Tester anbieten.

                      apollon77 AlCalzone 2 Replies Last reply Reply Quote 0
                      • apollon77
                        apollon77 @bahnuhr last edited by

                        @bahnuhr sagte in can't find python:

                        Würde auch anbieten, dass ich die Beschreibung "manuelle Installation" auf iobroker.de mal überarbeiten könnte (wenn gewünscht). Denn diese funktioniert ja nicht.

                        Sehr gern!
                        Du kannst es auf https://github.com/ioBroker/ioBroker.docs/blob/master/docs/de/install/windows.md (ist es das was du meinst) bzw über den Edit link auf der Webseite editieren und als PR einreichen 🙂

                        1 Reply Last reply Reply Quote 0
                        • apollon77
                          apollon77 @bahnuhr last edited by

                          @bahnuhr Ich habe dort mal was geantwortet. Das hat mit ioBrokewr nix zu tun ... das ist npm magie und sowas 😞

                          bahnuhr 1 Reply Last reply Reply Quote 0
                          • bahnuhr
                            bahnuhr Forum Testing Most Active @apollon77 last edited by

                            @apollon77 sagte in can't find python:

                            @bahnuhr Ich habe dort mal was geantwortet. Das hat mit ioBrokewr nix zu tun ... das ist npm magie und sowas 😞

                            --logevel=error

                            Müsste dies nicht "loglevel" heißen.

                            apollon77 1 Reply Last reply Reply Quote 0
                            • apollon77
                              apollon77 @bahnuhr last edited by

                              @bahnuhr Ja, sollte es 🙂

                              1 Reply Last reply Reply Quote 0
                              • AlCalzone
                                AlCalzone Developer @bahnuhr last edited by

                                @bahnuhr Meinen Vorschlag mal probiert?

                                bahnuhr 1 Reply Last reply Reply Quote 0
                                • bahnuhr
                                  bahnuhr Forum Testing Most Active @AlCalzone last edited by

                                  @AlCalzone sagte in can't find python:

                                  @bahnuhr Meinen Vorschlag mal probiert?

                                  Klappt erst heute abend.
                                  Melde mich dann.

                                  1 Reply Last reply Reply Quote 0
                                  • bahnuhr
                                    bahnuhr Forum Testing Most Active @AlCalzone last edited by

                                    @AlCalzone sagte in can't find python:

                                    @bahnuhr sagte in can't find python:

                                    Noch ne Idee ?

                                    Im ioBroker-Ordner eine Datei .npmrc anlegen, falls sie nicht schon existiert und folgende Zeile einfügen:

                                    python=C:\Users\Dieter.windows-build-tools\python27\python.exe
                                    

                                    Klappt so zumindest auf FreeBSD, daher schätze ich, dass es auf Windows auch klappt.


                                    Aber sollte das nicht auch ohne manuelles Eingreifen funktionieren? @Stabilostick

                                    So, Rückinfo von mir:
                                    Datei war auf meinem Win10 Rechner nicht da (auf Win7 schon ?!)
                                    Dienst gestoppt.
                                    Datei angelegt und Zeile eingefügt (hinter Dieter noch \ eingefügt).
                                    Dienst gestartet.

                                    Browser geöffnet und versucht sql zu installieren. Dienst wurde gestoppt (warum auch immer).
                                    Nochmal probiert (Dienst gestartet und versucht sql zu installieren).
                                    Das hat dann geklappt. Error 0
                                    Dann versucht sql mal zu löschen.
                                    Dies klappt dann nicht (Kreis dreht durch; dienst ist aber noch aktiv).

                                    Fazit:
                                    Installation hat dann geklappt. Löschen geht aber nicht mehr -> scheint irgendwas noch zu stören.

                                    Lösche nun mal die komplette FP und installieren Win10 neu.

                                    mfg

                                    1 Reply Last reply Reply Quote 0
                                    • bahnuhr
                                      bahnuhr Forum Testing Most Active last edited by

                                      So:
                                      Win10 Pro neu aufgespielt
                                      Node 10.15.3 und npm 6.4.1 drauf.

                                      cmd als admin ausgefuhrt.
                                      windows-build-tools
                                      iobroker installiert
                                      Dienst gestartet.
                                      iob läuft

                                      browser mit 8081 aufgerufen.
                                      versuch sql zu installieren.
                                      -> klappt nicht - wieder fehler mit python !

                                      Datei erstellt: .npmsc
                                      PC neu gestartet
                                      browser mit 8081 aufgerufen.
                                      versuch sql zu installieren.
                                      klappt

                                      Versuch sql zu deinstallieren.
                                      blauer Balken läuft und läuft. Fenster schließt sich nicht. Meldung mit error 0 kommt nicht.
                                      Irgendwas hängt da.

                                      Browser neu geladen. Sql ist weg.

                                      Fazit:
                                      Installieren ging dann.
                                      löschen hat nicht geklappt.

                                      Wie schon erwähnt wäre es schön wenn das manuelle installieren klappen würde.
                                      (oder stabilo.. bekommt dies hin, dass multihost als data eingelesen werden können).

                                      mfg
                                      Dieter

                                      AlCalzone 1 Reply Last reply Reply Quote 0
                                      • AlCalzone
                                        AlCalzone Developer @bahnuhr last edited by

                                        @bahnuhr sagte in can't find python:

                                        löschen hat nicht geklappt.

                                        Welcher JS-Controller + Admin?

                                        bahnuhr 1 Reply Last reply Reply Quote 0
                                        • bahnuhr
                                          bahnuhr Forum Testing Most Active @AlCalzone last edited by

                                          @AlCalzone sagte in can't find python:

                                          @bahnuhr sagte in can't find python:

                                          löschen hat nicht geklappt.

                                          Welcher JS-Controller + Admin?

                                          ganz neu installiert mit:
                                          npm install iobroker
                                          etc.

                                          js-controller: 2.2.8 (ist das nicht zu hoch ?, wurde aber installiert mit npm...)
                                          admin: 3.7.8

                                          AlCalzone 1 Reply Last reply Reply Quote 0
                                          • AlCalzone
                                            AlCalzone Developer @bahnuhr last edited by

                                            @bahnuhr Das sind seit heute die latest-Versionen. Kannst du andere Adapter löschen - sprich, hängt es nur bei sql?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            875
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            python sql windows
                                            5
                                            24
                                            1675
                                            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