On 05/15/2014 09:36 PM, ch...@freeranger.com wrote:
Any ideas about what this might mean?

Running Debian Wheezy on a RaspBerry Pi and collecting data on a dispatch 
thread that is reading input on the serial port (connected to xbee series 1).

It happens every few days but it really chokes the program.

Thanks for any tips,

Exception in thread Thread-2:
Traceback (most recent call last):
   File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
   File "/usr/local/lib/python2.7/dist-packages/xbee/base.py", line 95, in run
   File "/usr/local/lib/python2.7/dist-packages/xbee/base.py", line 400, in 
     return self._split_response(frame.data)
   File "/usr/local/lib/python2.7/dist-packages/xbee/base.py", line 288, in 
     info[parse_rule[0]] = parse_rule[1](self, info)
   File "/usr/local/lib/python2.7/dist-packages/xbee/ieee.py", line 117, in 
     lambda xbee,original: xbee._parse_samples(original['samples'])
   File "/usr/local/lib/python2.7/dist-packages/xbee/base.py", line 357, in 
     digital_data_set = (sample_bytes.pop(0) << 8 | sample_bytes.pop(0))
IndexError: pop from empty list

The error means that sample_bytes is an empty list so calling pop is an error.

Or were you asking something deeper, like *why* sample_bytes is an empty list?

Gary Herron

Reply via email to