thobastian Posted April 29, 2016 at 08:31 PM Posted April 29, 2016 at 08:31 PM Ich versuche gerade den Proxy zu starten. Die installation funktionierte. aber das programm: brick-mqtt-proxy.py liess sich nicht starten. kennt jemand das Quote
photron Posted May 2, 2016 at 07:31 AM Posted May 2, 2016 at 07:31 AM Wie hast du es installiert? Wie genau äußert sich das nicht-starten können? Welche Fehlermeldung bekommst du? Quote
thobastian Posted May 2, 2016 at 06:12 PM Author Posted May 2, 2016 at 06:12 PM genau laut eurer Anleitung auf http://www.tinkerforge.com/de/doc/Software/Brick_MQTT_Proxy.html ich bin als root eingeloggt und starte die installation: sudo pip install tinkerforge paho-mqtt dann wollte ich starten: python brick-mqtt-proxy.py oder brick-mqtt-proxy.py Quote
photron Posted May 3, 2016 at 03:26 PM Posted May 3, 2016 at 03:26 PM Okay und welche Fehlermeldung wird angezeigt? Quote
thobastian Posted May 4, 2016 at 11:58 AM Author Posted May 4, 2016 at 11:58 AM ganz einfach. er findet das programm nicht. Ich weiß auch nicht , im welchen Verzeichnis. Quote
photron Posted May 4, 2016 at 12:15 PM Posted May 4, 2016 at 12:15 PM Ah! Du musst das Programm noch herunterladen. Das steh in der Anleitung (noch) nicht explizit drin: wget https://raw.githubusercontent.com/Tinkerforge/brick-mqtt-proxy/master/brick-mqtt-proxy.py Ich füge das gleich in die Anleitung mit ein. Quote
thobastian Posted May 27, 2016 at 09:35 AM Author Posted May 27, 2016 at 09:35 AM okay, verstehe. Aber nun bekomme ich nach dem Kommando: "python brick-mqtt-proxy.py" erneut eine Fehlermeldung: Traceback (most recent call last): File "brick-mqtt-proxy.py", line 38, in <module> import paho.mqtt.client as mqtt # pip install paho-mqtt ImportError: No module named paho.mqtt.client Langsam glaube ich, Tinkerforge will keine grafische Oberfläche, die funktioniert. Es ist frustrierend. Quote
photron Posted May 30, 2016 at 08:25 AM Posted May 30, 2016 at 08:25 AM Du hast paho-mqtt nicht installiert. Hast du folgenden Schritt aus der Anleitung ausgeführt? sudo pip install tinkerforge paho-mqtt Quote
thobastian Posted May 30, 2016 at 09:27 AM Author Posted May 30, 2016 at 09:27 AM Ja, das habe ich. Daran liegt es nicht. Hast Du noch eine idee? Quote
photron Posted May 30, 2016 at 01:41 PM Posted May 30, 2016 at 01:41 PM Auch danach bleibt der "ImportError: No module named paho.mqtt.client" Fehler? Bist du sicher das "sudo pip install tinkerforge paho-mqtt" geklappt hat? Was passiert wenn du Python so startest und dann am interaktiven Modus import paho.mqtt.client eingibst? Quote
thobastian Posted May 30, 2016 at 01:53 PM Author Posted May 30, 2016 at 01:53 PM dann bekomme ich das: $ sudo pip install tinkerforge paho-mqtt Requirement already satisfied (use --upgrade to upgrade): tinkerforge in /usr/local/lib/python3.4/dist-packages Requirement already satisfied (use --upgrade to upgrade): paho-mqtt in /usr/local/lib/python3.4/dist-packages $ python Python 2.7.9 (default, Mar 8 2015, 00:52:26) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import paho.mqtt.client Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named paho.mqtt.client >>> Quote
photron Posted May 30, 2016 at 03:19 PM Posted May 30, 2016 at 03:19 PM Okay, dein Python scheint etwas durch einander. pip installiert für Python 3. Dein Standard Python ist aber Python 2. das erklärt das Problem. Teste mal ob du auch pip2 hast, un für Python 2 zu installieren: sudo pip2 install tinkerforge paho-mqtt Quote
thobastian Posted May 30, 2016 at 03:26 PM Author Posted May 30, 2016 at 03:26 PM Vielen Dank, das war es ! Schöne Grüße Thomas Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.