ch...@freeranger.com wrote:
> No, that was pretty much what I was looking for. If anyone has an answer
> to the deeper question, that would be icing on the cake.
>
> What is interesting is that usually the traceback shows the line of code
> that I invoke which, deep inside a library I'm using, h
On Thu, 15 May 2014 21:36:49 -0700, chris wrote:
> Any ideas about what this might mean?
[jumping ahead]
> digital_data_set = (sample_bytes.pop(0) << 8 | sample_bytes.pop(0))
> IndexError: pop from empty list
sample_bytes is an empty list. Or it could be a list with just a
; _split_response
>
> > 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'])
>
, in
_parse_samples
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
--
https://mail.python.org/mailman/listinfo/python-list
t;/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
_parse_samples
digital_data_set = (sample_bytes.pop(0) &