Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. BLE Adapter lässt sich nicht installieren. gelöst(Nodev18)

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    BLE Adapter lässt sich nicht installieren. gelöst(Nodev18)

    This topic has been deleted. Only users with topic management privileges can see it.
    • Walter.O.
      Walter.O. @Homoran last edited by

      @homoran
      sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin
      hab ich instaliert
      sudo setcap cap_net_raw+eip $(eval readlink -f which node)
      Erledigt

      1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Walter.O. last edited by

        @walter-o

        Die Langfassung wäre besser. Soweit sieht das aber gut aus.

        python --version && python --version
        

        sagt?

        Walter.O. 1 Reply Last reply Reply Quote 0
        • Walter.O.
          Walter.O. @Thomas Braun last edited by

          @thomas-braun sagte in BLE Adapter lässt sich nicht installieren. gelöst(Nodev18):

          python --version && python --version

          Komando nicht gefunden

          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Walter.O. last edited by

            @walter-o

            python --version && python3 --version
            

            Und bitte immer vollständige Ein- wie Ausgaben zeigen, nix nacherzählen.

            Walter.O. 1 Reply Last reply Reply Quote 0
            • Walter.O.
              Walter.O. @Thomas Braun last edited by

              @thomas-braun sagte in BLE Adapter lässt sich nicht installieren. gelöst(Nodev18):

              python --version && python3 --version

              walter@Mini-PC:~$ python --version && python3 --version
              -bash: python: Kommando nicht gefunden.
              walter@Mini-PC:~$
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Walter.O. last edited by

                @walter-o sagte in BLE Adapter lässt sich nicht installieren. gelöst(Nodev18):

                python3 --version
                
                Walter.O. 1 Reply Last reply Reply Quote 0
                • Walter.O.
                  Walter.O. @Thomas Braun last edited by

                  @thomas-braun
                  walter@Mini-PC:~$
                  python3 --version
                  Python 3.11.2
                  walter@Mini-PC:~$

                  Thomas Braun 2 Replies Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @Walter.O. last edited by Thomas Braun

                    @walter-o
                    Hm. Okay.
                    Jedenfalls ist dein 'node-gyp' zu alt. Ich weiß im Moment aber nicht, wie man das am elegantesten auf eine Version >=8 hievt.

                    Walter.O. 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Walter.O. last edited by

                      @walter-o

                      Schau mal in die Datei

                      /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py

                      so um die Zeile 228 herum. Es dürfte da eine Zeile stehen, die ungefähr so aussieht:

                       else:
                            build_file_contents = open(build_file_path, 'rU').read() 
                      

                      Ändere rU zu r.

                      Walter.O. 1 Reply Last reply Reply Quote 0
                      • Walter.O.
                        Walter.O. @Thomas Braun last edited by

                        @thomas-braun

                        
                        # base_path_sections is a list of sections defined by GYP that contain
                        # pathnames.  The generators can provide more keys, the two lists are merged
                        # into path_sections, but you should call IsPathSection instead of using either
                        # list directly.
                        base_path_sections = [
                            "destination",
                            "files",
                            "include_dirs",
                            "inputs",
                            "libraries",
                                            [ „build_file_contents = open(build_file_path, 'rU').read()“ nicht gefunden ]
                        
                        
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Walter.O. last edited by Thomas Braun

                          @walter-o

                          Was sehe ich da?
                          Keine Ahnung...
                          [Edit:] Das ist Zeile 35 oder so rum bei dir... Du musst die genannte Sektion bei Zeile 228 suchen.

                          Bei mir sieht die Passage so aus:

                          def LoadOneBuildFile(build_file_path, data, aux_data, includes, is_target, check):
                              if build_file_path in data:
                                  return data[build_file_path]
                          
                              if os.path.exists(build_file_path):
                                  build_file_contents = open(build_file_path, encoding="utf-8").read()
                              else:
                                  raise GypError(f"{build_file_path} not found (cwd: {os.getcwd()})")
                          

                          Ist auf meinem Test/Bastelsystem, da sieht das dann nochmal anders aus.

                          Walter.O. 1 Reply Last reply Reply Quote 0
                          • Walter.O.
                            Walter.O. @Thomas Braun last edited by

                            @thomas-braun
                            jetzt

                            walter@Mini-PC:~$ node-gyp --version
                            v10.0.1
                            walter@Mini-PC:~$
                            
                            
                            
                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Walter.O. last edited by

                              @walter-o

                              Was haste denn jetzt gemacht? node-gyp global installiert?

                              1 Reply Last reply Reply Quote 0
                              • Walter.O.
                                Walter.O. @Thomas Braun last edited by

                                @thomas-braun
                                nach einem Ubdate jetzt wie bei dir:

                                
                                def LoadOneBuildFile(build_file_path, data, aux_data, includes, is_target, check):
                                    if build_file_path in data:
                                        return data[build_file_path]
                                
                                    if os.path.exists(build_file_path):
                                        build_file_contents = open(build_file_path, encoding="utf-8").read()
                                    else:
                                        raise GypError(f"{build_file_path} not found (cwd: {os.getcwd()})")
                                
                                
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @Walter.O. last edited by

                                  @walter-o sagte in BLE Adapter lässt sich nicht installieren. gelöst(Nodev18):

                                  nach einem Ubdate

                                  Wie upgedated? Per 'npm install -g node-gyp' oder sowas?

                                  Walter.O. 1 Reply Last reply Reply Quote 0
                                  • Walter.O.
                                    Walter.O. @Thomas Braun last edited by

                                    @thomas-braun
                                    Ja ```
                                    npm install -g node-gyp

                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @Walter.O. last edited by

                                      @walter-o

                                      Das fliegt dir irgendwann um die Ohren.

                                      Walter.O. 1 Reply Last reply Reply Quote 0
                                      • Walter.O.
                                        Walter.O. @Thomas Braun last edited by

                                        @thomas-braun warum?

                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Walter.O. last edited by Thomas Braun

                                          @walter-o

                                          Weil node-gyp genau wie npm im Paket nodejs drin ist. Und das wird sich irgendwann mit deiner manuell reingeflickten Version beißen.

                                          Funktioniert das bauen von ble denn nun?

                                          Walter.O. 1 Reply Last reply Reply Quote 0
                                          • Walter.O.
                                            Walter.O. @Thomas Braun last edited by

                                            @thomas-braun
                                            Nein. Auch jetzt nicht

                                            Thomas Braun 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

                                            826
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            52
                                            2393
                                            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