Ankündigung

Einklappen
Keine Ankündigung bisher.

SmartHomeNG Release v1.7.1

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

    #31
    Code:
    test_requirements: 'ephem' not installed. Minimum v3.7 needed
    test_requirements: 'holidays' not installed. Minimum v0.9.11 needed
    test_requirements: 'psutil' not installed, any version needed
    test_requirements: 'python-dateutil' not installed. Minimum v2.5.3 needed
    test_requirements: 'requests' not installed. Minimum v2.20.0 needed
    test_requirements: 'ruamel.yaml' not installed. Minimum v0.15.0 needed
    
    Installing core requirements for the current user, please wait...
    Running in a virtualenv environment,
    installing core requirements only to actual virtualenv, please wait...
    
    len(stderr)=205
    WARNING: You are using pip version 20.0.2; however, version 20.1 is available.
    You should consider upgrading via the '/usr/local/smarthome/virtualenv_name/bin/python -m pip install --upgrade pip' command.
    
    
    Python package requirements not met - SmartHomeNG is terminating
    ERROR: Unable to install core requirements

    Kommentar


      #32
      Du hast 2 Python3 Installationen. Genau daran kann sich der Update Mechanismus verhakeln.

      Du hast ein Python3 (Nachkommastelle unbekannt) und ein Python 3.7. Mit welcher Python Version startest Du SmartHomeNG? (Steht in den ersten Zeilen des Logs nach dem Neustart) -> Python 3.7.

      Nun die Fragen:
      - Welche Python Version ist die Installation die in Python3 liegt?
      - Welche Ausgabe liefert Dir das Kommando sudo update-alternatives --config python?
      Viele Grüße
      Martin

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

      Kommentar


        #33
        Zitat von Msinn Beitrag anzeigen
        - Welche Ausgabe liefert Dir das Kommando sudo update-alternatives --config python?
        Code:
        smarthome@debian64-smarthome:~$ sudo update-alternatives --config python
        update-alternatives: Fehler: keine Alternativen für python
        Code:
        smarthome@debian64-smarthome:~$ ls /usr/bin/python*
        /usr/bin/python /usr/bin/python2.7 /usr/bin/python3.7 /usr/bin/python3.7m /usr/bin/python3-config /usr/bin/python3m-config
        /usr/bin/python2 /usr/bin/python3 /usr/bin/python3.7-config /usr/bin/python3.7m-config /usr/bin/python3m
        Code:
        2020-04-30 13:09:28 WARNING __main__ -------------------- Init SmartHomeNG 1.7.1.master (cf2f7d85) --------------------
        2020-04-30 13:09:28 WARNING __main__ Running in Python interpreter 'v3.7.3 final' (pid=2156) on linux platform
        2020-04-30 13:09:28 WARNING lib.shtime Nutze Feiertage für Land 'DE', Provinz 'None', State 'None', 1 benutzerdefinierte Feiertagsdefinition(en) definiert
        2020-04-30 13:09:29 WARNING plugins.cli CLI: You should set a password for this plugin.

        Kommentar


          #34
          Beim Update der Requirements gab es gerade einen Abbruch.

          Nur als kleiner Hinweis, die Folgen kann ich (noch) nicht erkennen.

          Requirement already satisfied: pytz<2020,>=2014.10 in /usr/lib/python3/dist-pack ages (from convertdate->holidays>=0.9.11->-r requirements/conf_all.txt (line 20) ) (2019.1)
          Building wheels for collected packages: numpy, scipy
          Building wheel for numpy (PEP 517) ... \ done
          Created wheel for numpy: filename=numpy-1.18.3-cp37-cp37m-linux_armv7l.whl size=10349962 sha256=1132e206cf90a476440313691a617dbb5c9a0253536 784304eefe8d47b82e46c
          Stored in directory: /root/.cache/pip/wheels/48/d4/c6/72be820f031a875f5bac74fbf85d9467bdd973c15071b99c0c
          Building wheel for scipy (PEP 517) ... error
          ERROR: Command errored out with exit status 1:
          command: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpjgqngu2_
          cwd: /tmp/pip-install-s768gt3m/scipy
          Complete output (828 lines):
          lapack_opt_info:
          lapack_mkl_info:
          customize UnixCCompiler
          libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
          NOT AVAILABLE

          openblas_lapack_info:
          customize UnixCCompiler
          customize UnixCCompiler
          libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
          NOT AVAILABLE

          openblas_clapack_info:

          Kommentar


            #35
            Hallo,

            hatte gestern ein ähnliches Problem mit Python3.7 und psutil.
            Abhilfe hat dann ein :

            Code:
            sudo apt-get install python3.7-dev
            gebracht.

            Das gleiche war bei python3.8 und 3.6 notwendig. (wäre dann jeweils : python3.6-dev /python3.8-dev) Hab mich dann auf 3.7 festgelegt jetzt läuft wieder alles

            Gruss Andre

            Kommentar


              #36
              habe gerade nochmal alles neu nach Anleitung installiert.. incl debian..

              Code:
              2020-04-30 14:45:32 WARNING __main__ SmartHomeNG stopped
              2020-04-30 14:46:43 WARNING __main__ -------------------- Init SmartHomeNG 1.7.1.master (cf2f7d85) --------------------
              2020-04-30 14:46:43 WARNING __main__ Running in Python interpreter 'v3.7.3 final' (pid=21696) on linux platform
              2020-04-30 14:46:43 WARNING lib.shtime Nutze Feiertage für Land 'DE', Provinz 'None', State 'None', 1 benutzerdefinierte Feiertagsdefinition(en) definiert
              2020-04-30 14:46:44 WARNING plugins.cli CLI: You should set a password for this plugin.
              2020-04-30 14:46:45 ERROR root DB-API import failed for "pymysql": No module named 'pymysql' - module installed?
              2020-04-30 14:46:45 ERROR lib.plugin Plugin 'database' from section 'database' exception: No module named 'pymysql'
              > Traceback (most recent call last):
              > File "/usr/local/smarthome/lib/plugin.py", line 144, in __init__
              > plugin_thread = PluginWrapper(smarthome, plugin, classname, classpath, args, instance, self.meta)
              > File "/usr/local/smarthome/lib/plugin.py", line 610, in __init__
              > exec("self.plugin.__init__(smarthome{0}{1})".forma t("," if len(arglist) else "", argstring))
              > File "<string>", line 1, in <module>
              > File "/usr/local/smarthome/plugins/database/__init__.py", line 103, in __init__
              > Utils.string_to_list(self.get_parameter_value('con nect')))
              > File "/usr/local/smarthome/lib/db.py", line 153, in __init__
              > self._dbapi = __import__(dbapi)
              > ModuleNotFoundError: No module named 'pymysql'
              2020-04-30 14:46:45 ERROR plugins.telegram telegram: Unable to import Python package 'python-telegram-bot'
              2020-04-30 14:46:45 ERROR lib.plugin Plugins: Plugin 'telegram' initialization failed, plugin not loaded
              2020-04-30 14:46:45 ERROR lib.plugin Plugin 'solaredge' error importing Python package: No module named 'pymodbus'
              2020-04-30 14:46:45 ERROR lib.plugin Plugin 'solaredge' initialization failed, plugin not loaded
              2020-04-30 14:46:45 ERROR lib.plugin Plugin 'Sonos' error importing Python package: No module named 'xmltodict'
              2020-04-30 14:46:45 ERROR lib.plugin Plugin 'Sonos' initialization failed, plugin not loaded
              2020-04-30 14:46:46 WARNING lib.item load_itemdefinitions(): For testing the joined item structs are saved to /usr/local/smarthome/etc/structs_joined.yaml

              Kommentar


                #37
                Die spannende Frage ist, was Du anders machst als die anderen die nach der Anleitung installieren

                Da Du jetzt eine neue Installation hast, müssen wir mit meinen Fragen noch mal ganz von vorne anfangen. Hier mein Informationsbedarf in komprimierter Form:
                • Wie viele Python3 Installationen hast Du auf dem Rechner und welche Versionen, in welchen Verzeichnissen?
                • Wenn Du PIP3 aufrufst, aus welchem Verzeichnis wird das geladen?
                • Wenn Du SmartHomeNG startest, aus welchem Verzeichnis wird Python geladen?
                • Gibt es bei Dir ein PIP3.7? Falls ja, aus welchem Verzeichnis wird das geladen?
                Viele Grüße
                Martin

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

                Kommentar


                  #38
                  Mal ganz blöd gefragt: Sowas in der Art "python3 -m pip install PyMySQL --user" hast Du nicht gemacht, oder?

                  Es gibt für das Database Plugin keine requirements.txt da jeder, der von sqlite abweichen will, sich da selbst drum kümmern muß die Treiber/Module selber zu installieren.

                  Ich schaue mir das mit der Komplettanleitung noch mal an.
                  Zuletzt geändert von bmx; 30.04.2020, 15:12.

                  Kommentar


                    #39
                    Zitat von bmx Beitrag anzeigen
                    Mal ganz blöd gefragt: Sowas in der Art "python3 -m pip install PyMySQL --user" hast Du nicht gemacht, oder?
                    so blöd wie ich bin, hab ich das doch vergessen...


                    Zitat von Msinn Beitrag anzeigen
                    Da Du jetzt eine neue Installation hast, müssen wir mit meinen Fragen noch mal ganz von vorne anfangen. H
                    hab beide Varinaten als VM laufen,..

                    ich glaub ich hab jetzt die Ursache,.. wenn ich die Plungins über das admin-Interface hinzufüge, werden die Pakete installiert,.. Füge ich die plugins manuell in der plugin.yaml hinzu, werden die Pakete nicht automatisch installiert,..

                    telegram über das admin-interface hinzugefügt,..
                    Code:
                    2020-04-30 17:25:17 WARNING __main__ -------------------- Init SmartHomeNG 1.7.1.master (cf2f7d85) --------------------
                    2020-04-30 17:25:17 WARNING __main__ Running in Python interpreter 'v3.7.3 final' (pid=22970) on linux platform
                    2020-04-30 17:25:18 ERROR lib.shpypi test_requirements: 'python-telegram-bot' not installed. Minimum v9.0.0 needed
                    2020-04-30 17:25:18 WARNING lib.shpypi Installing plugin requirements for the current user, please wait...
                    2020-04-30 17:25:25 WARNING lib.shpypi plugin requirements installed
                    2020-04-30 17:25:25 WARNING __main__ SmartHomeNG restarting, initiated by SmartHomeNG (Python package installation)
                    2020-04-30 17:25:31 WARNING __main__ -------------------- Init SmartHomeNG 1.7.1.master (cf2f7d85) --------------------
                    2020-04-30 17:25:31 WARNING __main__ Running in Python interpreter 'v3.7.3 final' (pid=23002) on linux platform
                    2020-04-30 17:25:31 WARNING lib.shtime Nutze Feiertage für Land 'DE', Provinz 'None', State 'None', 1 benutzerdefinierte Feiertagsdefinition(en) definiert
                    2020-04-30 17:25:33 WARNING plugins.cli CLI: You should set a password for this plugin.
                    Zuletzt geändert von ivande; 30.04.2020, 16:54.

                    Kommentar


                      #40
                      Genau so soll das Log dann aussehen.

                      Der PyPi Installier Mechanismus läuft bei jedem Start von SmartHomeNG ab, damit die Packages nachinstalliert werden, falls ein Plugin ein neues Requirement mitbringt. Der Ablauf ist folgender:

                      SmartHomeNG
                      - baut aktuelle Requirement Dateien im Verzeichnis Requirements.
                      - Prüft ob die in conf_all.txt aufgeführten Requirements erfüllt sind
                      - falls nicht, wird pip3 install -r requirements/conf_all.txt --user --no-warn-script-location ausgeführt und anschließend SmartHomeNG neu gestartet

                      Zitat von ivande Beitrag anzeigen
                      ich glaub ich hab jetzt die Ursache,.. wenn ich die Plungins über das admin-Interface hinzufüge, werden die Pakete installiert,.. Füge ich die plugins manuell in der plugin.yaml hinzu, werden die Pakete nicht automatisch installiert,..
                      Das kann die Ursache nicht sein. Das Admin Interface tut nichts anderes, als sie in die Plugin.yaml einzutragen.

                      Eine Sache fällt mir noch ein: Aus welchem Verzeichnis startest Du SmartHomeNG? Richtig wäre
                      Code:
                      cd /usr/local/smarthome
                      python3 /bin/smarthome.py
                      Bei der Einrichtung des Service auch darauf achten, dass das Working Directory gesetzt ist:
                      Code:
                         [Service]
                         Type=forking
                         ExecStart=/usr/bin/python3 /usr/local/smarthome/bin/smarthome.py
                         WorkingDirectory=/usr/local/smarthome
                         User=smarthome
                         PIDFile=/usr/local/smarthome/var/run/smarthome.pid
                         Restart=on-abort
                         TimeoutStartSec=900
                      Zuletzt geändert von Msinn; 30.04.2020, 17:48.
                      Viele Grüße
                      Martin

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

                      Kommentar


                        #41
                        dies fehlt auch in der Anleitung

                        Zitat von Msinn Beitrag anzeigen
                        WorkingDirectory=/usr/local/smarthome


                        der Fehler lag jedoch in meiner plugin.yaml

                        Code:
                        telegram:
                        name: SH
                        plugin_name: [B][COLOR=#e74c3c]T[/COLOR][/B]elegram
                        token: mytoken123
                        ich hab von der bestehenden plugin.yaml die bisherigen "class_name: Telegram" in "plugin_name: Telegram" geändert und dabei den Großbuchstaben überall stehen lassen. Das Plugin funktioniert damit trotzdem (bai manueller Paket-Installation?! - der Paket-Installationsmechanismus jedoch nicht...

                        Gruß Ivan
                        Zuletzt geändert von ivande; 30.04.2020, 22:51.

                        Kommentar


                          #42
                          Hallo,
                          erstmal vielen Dank für SmarthomeNG.

                          Bei der Installation auf einem frischen Ubuntu Focal-Server bekomme ich folgenden Fehler.

                          Code:
                          python3 bin/smarthome.py
                          
                          SmartHomeNG should not run as root
                          
                          test_requirements: 'ephem' not installed. Minimum v3.7 needed
                          test_requirements: 'holidays' not installed. Minimum v0.9.11 needed
                          test_requirements: 'python-dateutil' not installed. Minimum v2.5.3 needed
                          test_requirements: 'ruamel.yaml' not installed. Minimum v0.15.0 needed
                          
                          Installing core requirements for the current user, please wait...
                          
                          len(stderr)=1371
                          ERROR: Command errored out with exit status 1:
                          command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-27yovqzu/ruamel.yaml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-27yovqzu/ruamel.yaml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"' "', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-mkwtdamf
                          cwd: /tmp/pip-install-27yovqzu/ruamel.yaml/
                          Complete output (11 lines):
                          Traceback (most recent call last):
                          File "<string>", line 1, in <module>
                          File "/tmp/pip-install-27yovqzu/ruamel.yaml/setup.py", line 211, in <module>
                          pkg_data = _package_data(__file__.replace('setup.py', '__init__.py'))
                          File "/tmp/pip-install-27yovqzu/ruamel.yaml/setup.py", line 184, in _package_data
                          data = literal_eval("".join(lines))
                          File "/tmp/pip-install-27yovqzu/ruamel.yaml/setup.py", line 156, in literal_eval
                          return _convert(node_or_string)
                          File "/tmp/pip-install-27yovqzu/ruamel.yaml/setup.py", line 95, in _convert
                          if isinstance(node, Str):
                          NameError: name 'Str' is not defined
                          ----------------------------------------
                          ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
                          
                          
                          Python package requirements not met - SmartHomeNG is terminating
                          ERROR: Unable to install core requirements
                          Gruß
                          Klaus

                          Kommentar


                            #43
                            Hallo klab ,

                            das war auch mein Problem auf einem "nackten" Ubuntu-Server 20.04, siehe post #35 in diesem Thread.
                            Bei Ubuntu kommt pyhton3.8.2 mit ich habe pyhton3.7 nachinstalliert und mich darauf festgelegt (symlink python3 auf python3.7). Müsste aber auch mit 3.8 funktionieren.

                            Hoffentlich hilfts, Rückmeldung wäre schön.

                            Gruss Andre

                            Kommentar


                              #44
                              Hallo AndreK,
                              danke für die Info.

                              Jedoch lässt sich python3.7 nicht installieren

                              Code:
                              apt-get install python3.7-dev
                              Paketlisten werden gelesen... Fertig
                              Abhängigkeitsbaum wird aufgebaut.
                              Statusinformationen werden eingelesen.... Fertig
                              E: Paket python3.7-dev kann nicht gefunden werden.
                              E: Mittels des Musters »python3.7-dev« konnte kein Paket gefunden werden.
                              E: Mittels regulärem Ausdruck »python3.7-dev« konnte kein Paket gefunden werden.
                              Der Fehler im Beitrag #42 wird durch die ältere Version von ruamel.yaml verursacht.

                              Die Versionen ab 0.15.100 lassen sich in python 3.8.2 installieren, sind aber leider für smarthomeNG zu neu. :-(

                              Code:
                              base.txt
                              # SmartHomeNG-lib
                              ruamel.yaml>=0.13.7,<=0.15.74;python_version<'3.7'
                              Gruß
                              Klaus

                              Zuletzt geändert von klab; 03.05.2020, 14:39.

                              Kommentar


                                #45
                                Es darf auch gerne eine ältere Version von Python sein.

                                Wie in der Doku unter www.smarthomeng.de/user/installation/anforderungen.html beschrieben, sind für SmartHomeNG 1.7.x die Python Versionen 3.5, 3.6 und 3.7 unterstützt.
                                Viele Grüße
                                Martin

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

                                Kommentar

                                Lädt...
                                X