Ankündigung

Einklappen
Keine Ankündigung bisher.

PIP3 in neuester Develope

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

    PIP3 in neuester Develope

    Ich habe am 3.11 die altuellen DEV-Versionen (smarthome und Plugins) und das IMG auf einen Raspi4 gezogen.
    Alles nach Anleitung installiert! Eigene Items usw. aus laufender Version 1.7.1 übernommen

    Leider scheitere ich am PIP3 in der Ladephase

    Versionstest als root:

    root@SmartHomeNG:/home/smarthome# pip3 --version
    pip 20.2.4 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
    root@SmartHomeNG:/home/smarthome#

    Versionstest als smarthome

    [smarthome@SmartHomeNG ~]$ pip3 --version
    pip 20.2.4 from /home/smarthome/.local/lib/python3.7/site-packages/pip (python 3.7)
    [smarthome@SmartHomeNG ~]$

    pip3 install -r requirements/base.txt --user

    Läuft problemlos, die Daten stehen im Pfad

    [smarthome@SmartHomeNG ~]$ /usr/local/smarthome/bin/smarthome.py --start

    test_requirements: 'iowait' not installed, any version needed
    test_requirements: 'portalocker' not installed, any version needed

    Installing core requirements for the current user, please wait...
    python_bin_path=/usr/bin
    > using PIP command: '/usr/bin/pip3'

    ERROR:
    /bin/sh: 1: /usr/bin/pip3: not found

    ERROR: Unable to install core requirements
    Use the commandline option --pip3_command to specify the path to the command

    Hier setzt es bei mir aus. Wie ist die vorstehende Zeile zu interprtieren?
    Wo kann ich den Pfad anpassen?

    Danke für jeden Tipp!

    LG
    Wolfgang

    #2
    Die Antwort hast Du schon selbst gegeben: Use the commandline option --pip3_command to specify the path to the command

    Die Option wird Dir auch angezeigt wenn Du python3 bin/smarthome.py --help aufrufst.
    Viele Grüße
    Martin

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

    Kommentar


      #3
      Damit ist für den Start von SHNG sowas gemeint:

      smarthome@SmartHomeNG :/usr/local/smarthome$ python3 bin/smarthome.py -r --pip3_command /home/smarthome/.local/lib/python3.7/site-packages/pip

      Du kannst mit which pip3 rausfinden, welches PIP3 genutzt werden würde.
      Zuletzt geändert von bmx; 05.11.2020, 19:50.

      Kommentar


        #4
        Genau da ist mein Problem


        [smarthome@SmartHomeNG ~]$ python3 bin/smarthome.py --help
        python3: can't open file 'bin/smarthome.py': [Errno 2] No such file or directory

        Nach einigen Vesuchen und den Hinweisen vom bmx ist das jetzt mein Stand



        [smarthome@SmartHomeNG ~]$ which pip3
        /home/smarthome/.local/bin/pip3

        In der smarthome.yaml habe ich

        # If the standard commend PIP3 does not work when multiple Python3 versions are installed
        # enter the name or full path of the right pip command below

        #pip_command: pip3
        pip_command: /home/smarthome/.local/bin/pip3

        Irgend wie stehe ich auf dem Schlauch!





        Kommentar


          #5
          Ich verstehe im Moment nicht was Du machst. Weisst Du nicht wohin Du SmartHomeNG installiert hast? Sonst müsstest Du eigentlich in der Lage sein smarthome.py mit Option —help zu starten.

          Wenn es bereits daran scheitert solltest Du vielleicht vom develop Branch die Finger lassen.

          Viele Grüße
          Martin

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

          Kommentar


            #6
            Zitat von schloessl Beitrag anzeigen
            [smarthome@SmartHomeNG ~]$ python3 bin/smarthome.py --help
            python3: can't open file 'bin/smarthome.py': [Errno 2] No such file or directory
            Das kann nicht funktionieren. Die Zeile aus #3 ist gedacht gewesen wenn Du im Heimverzeichnis von SHNG bist, also /usr/local/smarthome
            Ich habe das oben noch mal ergänzt.

            Kommentar

            Lädt...
            X