Jump to content

Recommended Posts

Posted

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.

  • 4 weeks later...
Posted

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.

 

 

Posted

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?

Posted

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

>>>

Posted

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

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...