Jump to content

Problem mit tinkerforge und raspberry python script


Recommended Posts

Guest skuydi@benmail.ch
Posted

Hallo zusammen,

 

Ich habe das Weater Station gekauft. Ich möchte Sie mit Raspberry Pi benutzen. Dafür möchte ich dass ein Python Script automatisch nach dem boot ausgeführt wird. (in /etc/rc.local des PI eingegeben)

 

Ich bekomme dieser Fehler.

 

Traceback (most recent call last):

  File "/home/pi/tinkerforge/ws-callback.py", line 99 in <module>

    raw_input('Press key to exit\n')

EOFError: EOF when reading a line

Exception in thread Disconnect-Prober (Most likely raised during interpreter shutdown) :Exception in thread Brick-Receiver (most likely rtaised during interpreter shutdown):

Traceback (most recent call last):

  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner

  File "/usr/lib/python2.7/threading.py", line 505, in run   

Traceback (most recent call last):

  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner  File "/home/pi/tinkerforge/ws-callback.py", line 681, in receive_loop

  File "/usr/lib/python2.7/threading.py", line 505, in run   

<type exception'exceptions.TypeError'>: 'NoneType? object is not collalbe

  File "/home/pi/tinkerforge/ws-callback.py", line 816, in disconnect_probe_loop

 

  File "/usr/lib/python2.7/Queue.py" lione 174, in get

<type 'exceptions.TypeError'> 'NoneType' object is not collable

 

jede Hilfe wird dankbar sein

 

Entschuldigen mein Deutsch ist noch nicht sehr gut.

 

tchüss

 

 

 

Posted

Ein über init-Skript ausgeführtes Programm hat kein stdin und kein stdout (bzw. diese sind "geschlossen").

 

Das passt auch zur Fehlermeldung: EOF when reading a line.

 

Du musst den "raw_input" ausbauen und durch einen anderen Warte-Mechanismus ersetzen.

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...