Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. Fehlermeldug "permissionError"

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Fehlermeldug "permissionError"

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @Druid Matrox last edited by

      @druid-matrox sagte in Fehlermeldug "permissionError":

      Wie bekomme ich iobroker als normalen Python-User?

      Was meinst du damit?

      D 1 Reply Last reply Reply Quote 0
      • D
        Druid Matrox @Thomas Braun last edited by

        @thomas-braun

        Hallo, danke für die Antwort.
        Nun, iobroker fungiert doch auf dem Raspberry als "User".
        Als pi kann ich python-Programme ausführen, der iobroker aber
        nicht. Vielleicht muss ich den iobroker "nur" irgendwo hinzufügen,
        damit das geht.

        VG Matrox

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

          @druid-matrox

          Der iobroker kann grundsätzlich python aufrufen:

          echad@chet:/opt/iobroker $ sudo -u iobroker python --version
          Python 3.9.2
          

          Muss bei dir an was anderem liegen. Fehlermeldungen geheim?
          Vermutlich die Rechte an dem skript nicht für den iobroker geeignet.

          D 1 Reply Last reply Reply Quote 0
          • D
            Druid Matrox @Homoran last edited by Homoran

            @homoran
            Danke für die Antwort!
            Folgende Meldungen kommen, wenn das Programm aufgerufen werden soll:

            21:47:00.063	error	javascript.0 (13476) script.js.myscripts.LichtGang: exec: /usr/bin/python3.9 /home/pi/python/schaltergang.py 1 10001 on 5
            

            MOD-EDIT: Code in code-tags gesetzt!

            Aufgerufen wird mit Blockly (hier als code):

            schedule('{"time":{"exactTime":true,"start":"18:00"},"period":{"days":1}}', async function () {
              exec('/usr/bin/python3.9 /home/pi/python/schaltergang.py 1 10001 on 5');
              console.error("exec: " + '/usr/bin/python3.9 /home/pi/python/schaltergang.py 1 10001 on 5');
            });
            schedule('{"time":{"exactTime":true,"start":"21:47"},"period":{"days":1}}', async function () {
              exec('/usr/bin/python3.9 /home/pi/python/schaltergang.py 1 10001 on 5');
              console.error("exec: " + '/usr/bin/python3.9 /home/pi/python/schaltergang.py 1 10001 on 5');
            });
            
            1 Reply Last reply Reply Quote 0
            • D
              Druid Matrox @Thomas Braun last edited by

              @thomas-braun
              Bei mir wird da leider nur die 2.7 angezeigt.

              Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @Druid Matrox last edited by

                @druid-matrox sagte in Fehlermeldug "permissionError":

                @thomas-braun
                Bei mir wird da leider nur die 2.7 angezeigt.

                und im error

                @druid-matrox sagte in Fehlermeldug "permissionError":

                21:47:00.063 error javascript.0 (13476) script.js.myscripts.LichtGang: exec: /usr/bin/python3.9 /home/pi/python/schaltergang.py 1 10001 on 5

                hatcalso nix mit dem user zu tun

                D 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Druid Matrox last edited by

                  @druid-matrox

                  ls -l /home/pi/python/schaltergang.py
                  

                  python auf 3.x umstellen:

                  sudo apt install python-is-python3
                  
                  1 Reply Last reply Reply Quote 0
                  • D
                    Druid Matrox @Homoran last edited by

                    @Homoran
                    OK, wie löse ich das dann?
                    Und zu dem permissionError weiß keiner was?

                    Homoran haus-automatisierung 2 Replies Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @Druid Matrox last edited by

                      @druid-matrox sagte in Fehlermeldug "permissionError":

                      Und zu dem permissionError weiß keiner was?

                      doch der admin v6.2.23

                      Thomas Braun 1 Reply Last reply Reply Quote 1
                      • haus-automatisierung
                        haus-automatisierung Developer Most Active @Druid Matrox last edited by

                        @druid-matrox Lass Dir doch den Output mal ausgeben, dann müssen wir auch nicht raten:

                        exec('/usr/bin/python3.9 /home/pi/python/schaltergang.py 1 10001 on 5', (error, stdout, stderr) => {
                            console.error('error: ' + error);
                            console.error('stderr: ' + stderr);
                            console.log('stdout: ' + stdout);
                        });
                        
                        D 2 Replies Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Homoran last edited by

                          @homoran sagte in Fehlermeldug "permissionError":

                          doch der admin v6.2.23

                          Hier fehlen dem iobroker vmtl. lediglich die Rechte an dem py-skript im /home/pi

                          Homoran 1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @Thomas Braun last edited by

                            @thomas-braun nee der permissionError ist der übliche

                            @druid-matrox sagte in Fehlermeldug "permissionError":

                            Ich kann keine Dateien löschen, es kommt immer oben aufgeführte Fehlermeldung. Betrifft z.B. selbst erstellte Ordner in Objekte, Programme unter Scripte, Presets unter ECHarts.

                            1 Reply Last reply Reply Quote 0
                            • D
                              Druid Matrox @haus-automatisierung last edited by

                              @haus-automatisierung

                              Es sind hier zwei verschiedene Probleme.

                              Der LS-Befehl bringt:
                              -rw-r--r-- 1 pi pi 549 Sep 27 15:33 /home/pi/python/schaltergang.py

                              haus-automatisierung Thomas Braun 2 Replies Last reply Reply Quote 0
                              • D
                                Druid Matrox @haus-automatisierung last edited by

                                @haus-automatisierung
                                Wie bringe ich das in Blockly?

                                haus-automatisierung 1 Reply Last reply Reply Quote 0
                                • haus-automatisierung
                                  haus-automatisierung Developer Most Active @Druid Matrox last edited by

                                  @druid-matrox sagte in Fehlermeldug "permissionError":

                                  Es sind hier zwei verschiedene Probleme.

                                  Ja, und das "Permission Error" Thema wurde bereits mit dem 1. Kommentar von @Homoran hier abgehakt. Upgrade vom Admin-Adapter auf 6.2.23 (beta)

                                  Für Problem 2. siehe Script von mir und lies die Ausgabe.

                                  D 1 Reply Last reply Reply Quote 0
                                  • haus-automatisierung
                                    haus-automatisierung Developer Most Active @Druid Matrox last edited by

                                    @druid-matrox sagte in Fehlermeldug "permissionError":

                                    Wie bringe ich das in Blockly?

                                    Achso, ich dachte Du arbeitest mit JavaScript, weil Du auch JS hier teilst. Leg halt ein neues JavaScript (statt Blockly) an und füg das dort ein...

                                    D 1 Reply Last reply Reply Quote 0
                                    • D
                                      Druid Matrox @haus-automatisierung last edited by

                                      @haus-automatisierung
                                      Sorry, hatte ich überlesen.

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

                                        @druid-matrox sagte in Fehlermeldug "permissionError":

                                        sudo -u iobroker cp /home/pi/python/schaltergang.py /home/iobroker/
                                        sudo -u iobroker chmod 744 /home/iobroker/schaltergang.py
                                        

                                        Dann ruf das vom neuen Ort auf.

                                        D 1 Reply Last reply Reply Quote 0
                                        • D
                                          Druid Matrox @Thomas Braun last edited by Homoran

                                          @thomas-braun
                                          Von welchem neuen Ort?

                                          Hier die Ausgabe des Installationsbefehles:

                                          sudo apt install python-is-python3
                                          Paketlisten werden gelesen... Fertig
                                          Abhängigkeitsbaum wird aufgebaut.
                                          Statusinformationen werden eingelesen.... Fertig
                                          E: Paket python-is-python3 kann nicht gefunden werden.
                                          pi@raspberrypi:~ $ python --version
                                          Python 3.9.0
                                          

                                          MOD-EDIT: Code in code-tags gesetzt!

                                          Thomas Braun 2 Replies Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Druid Matrox last edited by

                                            @druid-matrox

                                            cat /etc/debian_version
                                            
                                            D 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.1k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            31
                                            677
                                            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