Ankündigung

Einklappen
Keine Ankündigung bisher.

SmarthomeNG v1.10.0 Image für Raspberry Pi

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #16
    Du hattest in der smarthome.yaml auch das pip aus Deinem venv referenzeirt. Ivande hatte jedoch ein anderes pip konfiguriert.

    Du solltest in der Doku zu Deinem Image noch darauf hinwaeisen, dass die von Dir empfohlene Konfiguration in der smarthome.yaml natürlich zum verwendeten venv passen muss.

    Wenn jemand das Python 3.11 venv Deines Images nutzt, ist die Konfiguration, die auf das pip vom Python 3.10 venv zeigt natürlich falsch.
    Viele Grüße
    Martin

    There is no cloud. It's only someone else's computer.

    Kommentar


      #17
      Ich hab mich für das image für den raspy entschieden, da ich der Meinung war ich bekomme damit schnell das System zum Laufen. Ich habe damit aber schon einige Stunden herumprobiert und weder SH noch smartvisu zum Laufen gebracht.


      Probleme
      * pip nicht aktuell: SH installiert die pakete nicht und startet auch nicht: A new release of pip is available: 23.0.1 -> 24.0 To update, run: pip3 install --upgrade pip​
      run: pip3 install --upgrade leider ohne Erfolg (Warscheinlich wird das upgrade damit auch nicht im Enviroment installiert?)
      Auch nach dem Ausführen des Befehls "pip3 install --upgrade pip" ​kommt die selbe Fehlermeldung dass pip nicht aktuell ist.
      mit deactivate + pip3 install --upgrade pip​​ ist Zumindest die Update - Fehler- Meldung weg.


      pip_command: /usr/local/smarthome/venvs/py_310/bin/python3 -m pip in etc/smarthome.yaml:
      ​ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.

      * wenn automatische Installation nicht geht. Dann wohl manuell installieren mit pip3 install -r requirements/conf_all.txt --user ?? (aus requirements\conf_all.txt)

      * smartvisu ist auch nicht aufrufbar "502 Bad gadeway" (Vorerst nicht wichtig - da ich SH ja nicht einmal zum Laufen bekomme.)

      sollte das update von pip und die manuelle installation mit python -m pip3 ausgeführt werden?
      python -m pip3 install --upgrade ?
      python -m pip3 install -r requirements/conf_all.txt --user ?

      Werd morgen damit das 3x die Speicherkarte flashen und starte von vorne.
      Zuletzt geändert von ivande; 05.06.2024, 22:08.

      Kommentar


        #18
        pip im enviroment 310 aktualisiert - trotzdem die Fehlermeldung beim Start von SH

        Code:
        (py_310) [smarthome@SmartHomeNG /usr/local/smarthome]$ python -m pip install --upgrade pip
        Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
        Requirement already satisfied: pip in ./venvs/py_310/lib/python3.10/site-packages (24.0)
        
        
        ***
        
        2024-06-06  10:51:18 NOTICE   lib.smarthome       --------------------   Init SmartHomeNG v1.10.0-master (4b25822a0)   --------------------
        2024-06-06  10:51:18 NOTICE   lib.smarthome       Running in Python interpreter 'v3.10.13 final' in virtual environment, from directory /usr/local/smarthome
        2024-06-06  10:51:18 NOTICE   lib.smarthome        - operating system 'Debian GNU/Linux 12 (bookworm)' (pid=10959)
        2024-06-06  10:51:18 NOTICE   lib.smarthome        - on 'Raspberry Pi 3 Model B+ v1.3, 1GB (Sony, UK)'
        2024-06-06  10:51:21 WARNING  lib.shpypi          test_requirements: 'python-telegram-bot' not installed. Minimum v20.2 needed
        2024-06-06  10:51:21 NOTICE   lib.shpypi          Installing plugin requirements for the current user, please wait...
        2024-06-06  10:51:21 WARNING  lib.shpypi          PIP command read from smarthome.yaml: 'python -m pip'
        2024-06-06  10:51:21 NOTICE   lib.shpypi          Using auto-determined PIP: 'python -m pip'
        2024-06-06  10:51:29 ERROR    lib.shpypi          
        [notice] A new release of pip is available: 23.0.1 -> 24.0
        [notice] To update, run: pip3 install --upgrade pip
        
        2024-06-06  10:51:29 CRITICAL lib.smarthome       Python package requirements for configured plugins are not met and unable to install those requirements
        2024-06-06  10:51:29 CRITICAL lib.smarthome       Do you have multiple Python3 Versions installed? Maybe PIP3 looks into a wrong Python environment. Try to configure pip_command in etc/smarthome.yaml
        2024-06-06  10:51:29 CRITICAL lib.smarthome       Aborting
        2024-06-06  10:51:32 NOTICE   lib.smarthome       --------------------   Init SmartHomeNG v1.10.0-master (4b25822a0)   --------------------
        2024-06-06  10:51:32 NOTICE   lib.smarthome       Running in Python interpreter 'v3.10.13 final' in virtual environment, from directory /usr/local/smarthome
        2024-06-06  10:51:32 NOTICE   lib.smarthome        - operating system 'Debian GNU/Linux 12 (bookworm)' (pid=11004)
        2024-06-06  10:51:32 NOTICE   lib.smarthome        - on 'Raspberry Pi 3 Model B+ v1.3, 1GB (Sony, UK)'
        2024-06-06  10:51:35 WARNING  lib.shpypi          test_requirements: 'python-telegram-bot' not installed. Minimum v20.2 needed
        2024-06-06  10:51:35 NOTICE   lib.shpypi          Installing plugin requirements for the current user, please wait...
        2024-06-06  10:51:35 WARNING  lib.shpypi          PIP command read from smarthome.yaml: 'python -m pip'
        2024-06-06  10:51:35 NOTICE   lib.shpypi          Using auto-determined PIP: 'python -m pip'
        2024-06-06  10:51:42 ERROR    lib.shpypi          
        [notice] A new release of pip is available: 23.0.1 -> 24.0
        [notice] To update, run: pip3 install --upgrade pip
        
        2024-06-06  10:51:42 CRITICAL lib.smarthome       Python package requirements for configured plugins are not met and unable to install those requirements
        2024-06-06  10:51:42 CRITICAL lib.smarthome       Do you have multiple Python3 Versions installed? Maybe PIP3 looks into a wrong Python environment. Try to configure pip_command in etc/smarthome.yaml
        2024-06-06  10:51:42 CRITICAL lib.smarthome       Aborting
        ​




        etc/smarthome.yaml:

        * pip_command auskommentiert
        ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
        endlos-loop

        * pip_command: "/usr/local/smarthome/venvs/py_310/bin/python3 -m pip
        ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
        endlos-loop

        *pip_command: "python -m pip"
        endlos-loop - ABER - das fehlende package python-telegram-bot wir nicht installiert

        Code:
        Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
        Ignoring cherrypy: markers 'python_version >= "3.11"' don't match your environment
        Ignoring ruamel.yaml: markers 'python_version < "3.7"' don't match your environment
        Ignoring ruamel.yaml: markers 'python_version == "3.7"' don't match your environment
        Requirement already satisfied: cheroot<=9.0.0,>=8.6.0 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 14)) (9.0.0)
        Requirement already satisfied: cherrypy>=8.1.2 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (18.9.0)
        Requirement already satisfied: ephem<=4.1.0,>=3.7 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 23)) (4.1)
        Requirement already satisfied: holidays>=0.9.11 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 26)) (0.50)
        Requirement already satisfied: iowait in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 29)) (0.2)
        Requirement already satisfied: janus>=0.5.0 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 32)) (1.0.0)
        Requirement already satisfied: jinja2>=2.9 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 35)) (3.1.4)
        Requirement already satisfied: paho-mqtt>=1.2.2 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 38)) (2.1.0)
        Requirement already satisfied: portalocker in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 41)) (2.8.2)
        Requirement already satisfied: psutil in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 44)) (5.9.8)
        Requirement already satisfied: pyjwt>=1.6.4 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 48)) (2.8.0)
        Requirement already satisfied: pyotp>=2.6.0 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 51)) (2.9.0)
        Requirement already satisfied: python-dateutil>=2.5.3 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 54)) (2.9.0.post0)
        Requirement already satisfied: python-telegram-bot>=20.2 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (21.2)
        Requirement already satisfied: requests>=2.20.0 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 62)) (2.32.3)
        Requirement already satisfied: ruamel.yaml<=0.16.8,>=0.15.78 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 71)) (0.16.7)
        Requirement already satisfied: websockets>=8.1 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 74)) (12.0)
        Requirement already satisfied: xmltodict in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 78)) (0.13.0)
        Requirement already satisfied: six>=1.11.0 in /home/smarthome/.local/lib/python3.10/site-packages (from cheroot<=9.0.0,>=8.6.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 14)) (1.16.0)
        Requirement already satisfied: jaraco.functools in /home/smarthome/.local/lib/python3.10/site-packages (from cheroot<=9.0.0,>=8.6.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 14)) (4.0.1)
        Requirement already satisfied: more-itertools>=2.6 in /home/smarthome/.local/lib/python3.10/site-packages (from cheroot<=9.0.0,>=8.6.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 14)) (10.2.0)
        Requirement already satisfied: portend>=2.1.1 in /home/smarthome/.local/lib/python3.10/site-packages (from cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (3.2.0)
        Requirement already satisfied: zc.lockfile in /home/smarthome/.local/lib/python3.10/site-packages (from cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (3.0.post1)
        Requirement already satisfied: jaraco.collections in /home/smarthome/.local/lib/python3.10/site-packages (from cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (5.0.1)
        Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/smarthome/.local/lib/python3.10/site-packages (from janus>=0.5.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 32)) (4.12.1)
        Requirement already satisfied: MarkupSafe>=2.0 in /home/smarthome/.local/lib/python3.10/site-packages (from jinja2>=2.9->-r /usr/local/smarthome/requirements/conf_all.txt (line 35)) (2.1.5)
        Requirement already satisfied: httpx~=0.27 in /home/smarthome/.local/lib/python3.10/site-packages (from python-telegram-bot>=20.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (0.27.0)
        Requirement already satisfied: charset-normalizer<4,>=2 in /home/smarthome/.local/lib/python3.10/site-packages (from requests>=2.20.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 62)) (3.3.2)
        Requirement already satisfied: idna<4,>=2.5 in /home/smarthome/.local/lib/python3.10/site-packages (from requests>=2.20.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 62)) (3.7)
        Requirement already satisfied: urllib3<3,>=1.21.1 in /home/smarthome/.local/lib/python3.10/site-packages (from requests>=2.20.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 62)) (2.2.1)
        Requirement already satisfied: certifi>=2017.4.17 in /home/smarthome/.local/lib/python3.10/site-packages (from requests>=2.20.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 62)) (2024.6.2)
        Requirement already satisfied: anyio in /home/smarthome/.local/lib/python3.10/site-packages (from httpx~=0.27->python-telegram-bot>=20.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (4.4.0)
        Requirement already satisfied: httpcore==1.* in /home/smarthome/.local/lib/python3.10/site-packages (from httpx~=0.27->python-telegram-bot>=20.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (1.0.5)
        Requirement already satisfied: sniffio in /home/smarthome/.local/lib/python3.10/site-packages (from httpx~=0.27->python-telegram-bot>=20.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (1.3.1)
        Requirement already satisfied: h11<0.15,>=0.13 in /home/smarthome/.local/lib/python3.10/site-packages (from httpcore==1.*->httpx~=0.27->python-telegram-bot>=20.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (0.14.0)
        Requirement already satisfied: tempora>=1.8 in /home/smarthome/.local/lib/python3.10/site-packages (from portend>=2.1.1->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (5.5.1)
        Requirement already satisfied: jaraco.text in /home/smarthome/.local/lib/python3.10/site-packages (from jaraco.collections->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (3.12.0)
        Requirement already satisfied: setuptools in /usr/local/lib/python3.10/site-packages (from zc.lockfile->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (65.5.0)
        Requirement already satisfied: pytz in /home/smarthome/.local/lib/python3.10/site-packages (from tempora>=1.8->portend>=2.1.1->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (2024.1)
        Requirement already satisfied: exceptiongroup>=1.0.2 in /home/smarthome/.local/lib/python3.10/site-packages (from anyio->httpx~=0.27->python-telegram-bot>=20.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (1.2.1)
        Requirement already satisfied: jaraco.context>=4.1 in /home/smarthome/.local/lib/python3.10/site-packages (from jaraco.text->jaraco.collections->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (5.3.0)
        Requirement already satisfied: autocommand in /home/smarthome/.local/lib/python3.10/site-packages (from jaraco.text->jaraco.collections->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (2.2.2)
        Requirement already satisfied: inflect in /home/smarthome/.local/lib/python3.10/site-packages (from jaraco.text->jaraco.collections->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (7.2.1)
        Requirement already satisfied: backports.tarfile in /home/smarthome/.local/lib/python3.10/site-packages (from jaraco.context>=4.1->jaraco.text->jaraco.collections->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (1.2.0)
        Requirement already satisfied: typeguard>=4.0.1 in /home/smarthome/.local/lib/python3.10/site-packages (from inflect->jaraco.text->jaraco.collections->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (4.3.0)
        ​
        
        2024-06-06  10:27:01 NOTICE   lib.smarthome       --------------------   Init SmartHomeNG v1.10.0-master (4b25822a0)   --------------------
        2024-06-06  10:27:01 NOTICE   lib.smarthome       Running in Python interpreter 'v3.10.13 final' in virtual environment, from directory /usr/local/smarthome
        2024-06-06  10:27:01 NOTICE   lib.smarthome        - operating system 'Debian GNU/Linux 12 (bookworm)' (pid=8701)
        2024-06-06  10:27:02 NOTICE   lib.smarthome        - on 'Raspberry Pi 3 Model B+ v1.3, 1GB (Sony, UK)'
        2024-06-06  10:27:04 WARNING  lib.shpypi          test_requirements: 'python-telegram-bot' not installed. Minimum v20.2 needed
        2024-06-06  10:27:04 NOTICE   lib.shpypi          Installing plugin requirements for the current user, please wait...
        2024-06-06  10:27:04 WARNING  lib.shpypi          PIP command read from smarthome.yaml: 'python -m pip'
        2024-06-06  10:27:04 NOTICE   lib.shpypi          Using auto-determined PIP: 'python -m pip'
        2024-06-06  10:27:12 NOTICE   lib.shpypi          plugin requirements installed
        2024-06-06  10:27:12 NOTICE   lib.smarthome       --------------------   SmartHomeNG restarting, initiated by SmartHomeNG (Python package installation)   --------------------
        2024-06-06  10:27:15 NOTICE   lib.smarthome       --------------------   Init SmartHomeNG v1.10.0-master (4b25822a0)   --------------------
        2024-06-06  10:27:15 NOTICE   lib.smarthome       Running in Python interpreter 'v3.10.13 final' in virtual environment, from directory /usr/local/smarthome
        2024-06-06  10:27:15 NOTICE   lib.smarthome        - operating system 'Debian GNU/Linux 12 (bookworm)' (pid=8750)
        2024-06-06  10:27:15 NOTICE   lib.smarthome        - on 'Raspberry Pi 3 Model B+ v1.3, 1GB (Sony, UK)'
        2024-06-06  10:27:18 WARNING  lib.shpypi          test_requirements: 'python-telegram-bot' not installed. Minimum v20.2 needed
        2024-06-06  10:27:18 NOTICE   lib.shpypi          Installing plugin requirements for the current user, please wait...
        2024-06-06  10:27:18 WARNING  lib.shpypi          PIP command read from smarthome.yaml: 'python -m pip'
        2024-06-06  10:27:18 NOTICE   lib.shpypi          Using auto-determined PIP: 'python -m pip'
        2024-06-06  10:27:26 NOTICE   lib.shpypi          plugin requirements installed
        2024-06-06  10:27:26 NOTICE   lib.smarthome       --------------------   SmartHomeNG restarting, initiated by SmartHomeNG (Python package installation)   ------------------​
        ​
        ​


        nach manuellem installieren vom fehlendem Package startet SH
        Code:
        python -m pip install -r python-telegram-bot
        Code:
        sudo systemctl status smarthome
        ● smarthome.service - SmartHomeNG daemon
             Loaded: loaded (/lib/systemd/system/smarthome.service; enabled; preset: enabled)
             Active: active (running) since Thu 2024-06-06 11:05:27 CEST; 29s ago
            Process: 11467 ExecStart=/usr/local/smarthome/venvs/py_310/bin/python3 /usr/local/smarthome/bin/smarthome.py (code=exited, status=0/SUCCESS)
           Main PID: 11488 (python3)
                 IO: 25.9M read, 180.0K written
              Tasks: 27 (limit: 765)
             Memory: 92.2M
                CPU: 24.143s
             CGroup: /system.slice/smarthome.service
                     └─11488 /usr/local/smarthome/venvs/py_310/bin/python3 /usr/local/smarthome/bin/smarthome.py
        
        Jun 06 11:05:23 SmartHomeNG systemd[1]: Starting smarthome.service - SmartHomeNG daemon...
        Jun 06 11:05:27 SmartHomeNG python3[11487]: Daemon PID 11488
        Jun 06 11:05:27 SmartHomeNG systemd[1]: smarthome.service: Supervising process 11488 which is not our child. We'll most likely not notice when it exits.
        Jun 06 11:05:27 SmartHomeNG systemd[1]: Started smarthome.service - SmartHomeNG daemon.
        ​


        Zuletzt geändert von ivande; 06.06.2024, 10:06.

        Kommentar


          #19
          Wiki vom Image hab ich aktualisiert, sollte nun alles klar sein.
          Das hier wundert mich:
          * pip_command: "/usr/local/smarthome/venvs/py_310/bin/python3 -m pip
          ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
          endlos-loop​

          Hast du ne Idee Msinn?

          Kommentar


            #20
            ivande
            Das ist kein Fehler, sondern nur eine NOTICE. PIP hat eigene Releases, die von den Python Releasezyklen, die unabhängig von den Python Releases sind und PIP hat festgestellt, dass es eine neuere Version gibt und empfiehlt das Update. Die Meldung kannst Du einfach ignorieren.
            Viele Grüße
            Martin

            There is no cloud. It's only someone else's computer.

            Kommentar


              #21
              ich wage zu behaupten: sh läuft im enviroment 310, der package-Installationsmechanismus läuft mit "python -m pip" nicht im enviroment 310.

              mit pip_command: "/usr/local/smarthome/venvs/py_310/bin/python3 -m pip sollte auch pip im enviroment 310 laufen, macht es aber nicht da der --user-Fehler das installieren der Packages unterbricht. (zumindest bei mir, image 12.1.10 + Raspy3b+)

              entferne ich --user aus der Datei shpypi.py in Zeile 409 läuft alles so wie gewollt.

              Code:
              2024-06-07  08:50:03 NOTICE   lib.smarthome       --------------------   Init SmartHomeNG v1.10.0-master (4b25822a0)   --------------------
              2024-06-07  08:50:03 NOTICE   lib.smarthome       Running in Python interpreter 'v3.10.13 final' in virtual environment, from directory /usr/local/smarthome
              2024-06-07  08:50:03 NOTICE   lib.smarthome        - operating system 'Debian GNU/Linux 12 (bookworm)' (pid=58225)
              2024-06-07  08:50:03 NOTICE   lib.smarthome        - on 'Raspberry Pi 3 Model B+ v1.3, 1GB (Sony, UK)'
              2024-06-07  08:50:06 WARNING  lib.shpypi          test_requirements: 'python-telegram-bot' not installed. Minimum v20.2 needed
              2024-06-07  08:50:06 NOTICE   lib.shpypi          Installing plugin requirements for the current user, please wait...
              2024-06-07  08:50:06 WARNING  lib.shpypi          PIP command read from smarthome.yaml: '/usr/local/smarthome/venvs/py_310/bin/python3 -m pip'
              2024-06-07  08:50:06 NOTICE   lib.shpypi          Using auto-determined PIP: '/usr/local/smarthome/venvs/py_310/bin/python3 -m pip'
              2024-06-07  08:50:27 NOTICE   lib.shpypi          plugin requirements installed
              2024-06-07  08:50:27 NOTICE   lib.smarthome       --------------------   SmartHomeNG restarting, initiated by SmartHomeNG (Python package installation)   --------------------
              ​
              2024-06-07  08:50:30 NOTICE   lib.smarthome       --------------------   Init SmartHomeNG v1.10.0-master (4b25822a0)   --------------------
              2024-06-07  08:50:30 NOTICE   lib.smarthome       Running in Python interpreter 'v3.10.13 final' in virtual environment, from directory /usr/local/smarthome
              2024-06-07  08:50:30 NOTICE   lib.smarthome        - operating system 'Debian GNU/Linux 12 (bookworm)' (pid=58291)
              2024-06-07  08:50:30 NOTICE   lib.smarthome        - on 'Raspberry Pi 3 Model B+ v1.3, 1GB (Sony, UK)'
              2024-06-07  08:50:53 NOTICE   lib.smarthome        - Nutze Feiertage für Land 'DE', Provinz 'None', 1 benutzerdefinierte(r) Feiertag(e) definiert
              2024-06-07  08:51:07 INFO     plugins.priv_telegram Init telegram plugin
              2024-06-07  08:51:07 DEBUG    plugins.priv_telegram init plugins.priv_telegram
              2024-06-07  08:51:08 DEBUG    plugins.priv_telegram adding command handlers to application
              2024-06-07  08:51:08 DEBUG    plugins.priv_telegram Init complete
              2024-06-07  08:51:10 INFO     plugins.priv_modbus_tcp Init modbus_tcp plugin
              ​
              ​
              Zuletzt geändert von ivande; 07.06.2024, 08:01.

              Kommentar


                #22
                Was mich überrascht ist, dass das —user bei Dir im pip Image Probleme macht, in einer normalen Installation jedoch normal funktioniert.
                Viele Grüße
                Martin

                There is no cloud. It's only someone else's computer.

                Kommentar


                  #23
                  Will nicht ausschließen dass beim Image was faul ist. Hatte hier auch immer Probleme. Durch den pip command waren die letztens gelöst.
                  ist hier ein Problem zu erkennen?

                  https://github.com/smarthomeNG/ansib.../02_Python.yml
                  und
                  https://github.com/smarthomeNG/ansib..._Smarthome.yml

                  Kommentar


                    #24
                    Nachdem eine SD-Karte gestorben ist (genauer war so gar ein USB-Stick --> hatte gehofft der wäre "stabiler")

                    Nehm ich das als Anlass um auf das neue Image zu hüpfen.


                    ein " sudo apt-get update "

                    bringt eine ganze Reihe an Paketen die aktualisiert werden möchten --> durchführen?
                    Code:
                    (py_310)  [smarthome@SmartHomeNG ~]$
                    OK:1 http://deb.debian.org/debian bookworm InRelease
                    OK:2 http://deb.debian.org/debian-security bookworm-security InRelease
                    OK:3 http://deb.debian.org/debian bookworm-updates InRelease
                    OK:4 http://archive.raspberrypi.com/debian bookworm InRelease
                    OK:5 https://repos.influxdata.com/debian stable InRelease
                    OK:6 https://apt.grafana.com stable InRelease
                    OK:7 https://deb.nodesource.com/node_18.x nodistro InRelease
                    OK:8 https://repo.homebridge.io stable InRelease
                    Paketlisten werden gelesen… Fertig
                    (py_310)  [smarthome@SmartHomeNG ~]$ sudo apt-get upgrade
                    Paketlisten werden gelesen… Fertig
                    Abhängigkeitsbaum wird aufgebaut… Fertig
                    Statusinformationen werden eingelesen… Fertig
                    Paketaktualisierung (Upgrade) wird berechnet… Fertig
                    Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
                      rpi.gpio-common
                    Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
                    Die folgenden Pakete sind zurückgehalten worden:
                      libcamera-ipa linux-headers-rpi-2712 linux-headers-rpi-v8 linux-image-rpi-2712 linux-image-rpi-v8 raspi-utils rpicam-apps-lite
                    Die folgenden Pakete werden aktualisiert (Upgrade):
                      apache2-utils base-files bash bluez-firmware bsdextrautils bsdutils curl distro-info-data dns-root-data dphys-swapfile dpkg dpkg-dev
                      eject exim4 exim4-base exim4-config exim4-daemon-light fdisk ffmpeg firmware-atheros firmware-brcm80211 firmware-libertas
                      firmware-misc-nonfree firmware-realtek galera-4 grafana homebridge influxdb2 influxdb2-cli krb5-multidev less libarchive13
                      libavcodec59 libavdevice59 libavfilter8 libavformat59 libavutil57 libblkid-dev libblkid1 libc-bin libc-dev-bin libc-devtools
                      libc-l10n libc6 libc6-dbg libc6-dev libcamera-apps-lite libcjson1 libcryptsetup12 libcurl3-gnutls libcurl4 libdav1d6 libde265-0
                      libdpkg-perl libfdisk1 libfreetype-dev libfreetype6 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-common libglib2.0-0 libglib2.0-bin
                      libglib2.0-data libglib2.0-dev libglib2.0-dev-bin libgnutls-dane0 libgnutls30 libgssapi-krb5-2 libgssrpc4 libisl23 libk5crypto3
                      libkadm5clnt-mit12 libkadm5srv-mit12 libkdb5-10 libkrb5-3 libkrb5-dev libkrb5support0 libltdl-dev libltdl7 libmariadb3 libmount-dev
                      libmount1 libndp0 libpam-systemd libpisp-common libpisp1 libpostproc56 libpython3.11 libpython3.11-dev libpython3.11-minimal
                      libpython3.11-stdlib libqt5core5a libseccomp2 libsmartcols1 libssl-dev libssl3 libswresample4 libswscale6 libsystemd-dev
                      libsystemd-shared libsystemd0 libtool libudev-dev libudev1 libunbound8 libuuid1 libuv1 libvpx7 libwayland-client0 libwayland-cursor0
                      libwayland-egl1 libwayland-server0 linux-libc-dev locales mariadb-backup mariadb-client mariadb-client-core mariadb-common
                      mariadb-plugin-provider-bzip2 mariadb-plugin-provider-lz4 mariadb-plugin-provider-lzma mariadb-plugin-provider-lzo
                      mariadb-plugin-provider-snappy mariadb-server mariadb-server-core mount nano nodejs openssh-client openssh-server
                      openssh-sftp-server openssl php-symfony-cache php-symfony-cache-contracts php-symfony-config php-symfony-dependency-injection
                      php-symfony-deprecation-contracts php-symfony-expression-language php-symfony-filesystem php-symfony-service-contracts
                      php-symfony-var-exporter php8.2-bz2 php8.2-cli php8.2-common php8.2-curl php8.2-fpm php8.2-gd php8.2-mbstring php8.2-mysql
                      php8.2-opcache php8.2-readline php8.2-xml php8.2-zip pi-bluetooth python3-idna python3-software-properties python3.11 python3.11-dev
                      python3.11-minimal python3.11-venv raspberrypi-sys-mods raspi-firmware rfkill rpi-eeprom software-properties-common ssh systemd
                      systemd-sysv systemd-timesyncd tar tzdata udev usbutils usrmerge util-linux util-linux-extra uuid-dev wpasupplicant
                    177 aktualisiert, 0 neu installiert, 0 zu entfernen und 7 nicht aktualisiert.
                    Es müssen 433 MB an Archiven heruntergeladen werden.
                    Nach dieser Operation werden 98,0 MB Plattenplatz zusätzlich benutzt.
                    Möchten Sie fortfahren? [J/n]​
                    Danke euch

                    Kommentar


                      #25
                      ein weiteres Problemchen... ich komme nicht auf die Visu...

                      http://192.168.IPvomRaspi/smartvisu/index.php

                      liefert mir:

                      502 Bad Gateway
                      nginx/1.22.1​

                      auch der Aufruf von:
                      http://<ip-des-servers>/smartvisu/index.php?pages=kurzanleitung​

                      führt zum selben Ergebnis

                      und ja ich habe die richtige IP - da das Admin Interface funktioniert

                      Kommentar


                        #26
                        wenn ich nur die IP aufrufe, erhalte ich:

                        HTML-Code:
                         Welcome to nginx!
                        If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
                        
                        For online documentation and support please refer to nginx.org.
                        Commercial support is available at nginx.com.
                        
                        Thank you for using nginx.
                        ​

                        Meine Laienhafte Fehleranalyse: dem nginx muss mitgeteilt werden welche „Seite“ er Anzeigen soll.

                        war (glaube) eine index Seite dort habe ich etwas eingetragen dann wurde das zusätzlich zur Standard Seite mitgeliefert
                        Zuletzt geändert von Maexle; 31.07.2024, 14:53.

                        Kommentar


                          #27
                          Schau mal wegen nginx-Konfiguration in die Doku.

                          Gruß
                          Wolfram

                          Kommentar


                            #28
                            Dieser Punkt?

                            Code:
                              [h=3]Passwort-Files für unterschiedliche User für smartVISU, Alexa, Network Plugin erstellen[URL="https://smarthomeng.github.io/smarthome/visualisierung/reverse_proxy.html#passwort-files-fur-unterschiedliche-user-fur-smartvisu-alexa-network-plugin-erstellen"][/URL][/h] sudo apt-get install apache2-utils
                            
                            sudo htpasswd -c /etc/nginx/.smartvisu <username>
                            sudo htpasswd -c /etc/nginx/.alexa <username>
                            sudo htpasswd -c /etc/nginx/.shng​

                            Kommentar


                              #29
                              Hm, sehr sonderbar. Die Doku ist eigtl. nur für reverse proxy. Das brauchst nicht. Also wenn du auf IP zugreifen kannst und auch aktualisierte Inhalte angezeigt werden, kann es nicht wirklich am nginx liegen. ruf mal nur IP/smartvisu auf, ohne index und so. Auch bad gateway? Du rufst das aus dem eigenen Hausnetz auf, oder..?

                              Und ja, Pakete kannst du ruhig aktualisieren.

                              Kommentar


                                #30
                                Zitat von Onkelandy Beitrag anzeigen
                                reverse proxy

                                Ikann es nicht wirklich am nginx liegen. ruf mal nur IP/smartvisu auf, ohne index und so. Auch bad gateway? Du rufst das aus dem eigenen Hausnetz auf, oder..?
                                Proxy dachte ich mir das ich das nicht brauche --> hätte auch gar keinen Plan davon


                                http://<ip-des-servers>/smartvisu --> habe ich natürlich versucht --> steht ja auch so in der Doku
                                habe natürlich das www durchsucht und dort halt was gefunden wo nginx nachkuckt --> Datei verändert --> Browser zeigt an; daher kam ich ja auf die Idee das ich dem den "Smarvisu-Ordner" bekannt machen muss; oder muss nur diese Standard nginx Seite gelöscht werden?

                                Heimnetz: Ja RPi hängt am LAN (FritzBox) Laptop mit Browser über WLAN --> das AdminInterface funktioniert ja

                                Kommentar

                                Lädt...
                                X