Re: IndexError: pop from empty list

2014-05-16 Thread Peter Otten
[email protected] 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

Re: IndexError: pop from empty list

2014-05-15 Thread Steven D'Aprano
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 single sample. You

Re: IndexError: pop from empty list

2014-05-15 Thread chris
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, has generated an error. In this case

Re: IndexError: pop from empty list

2014-05-15 Thread Gary Herron
On 05/15/2014 09:36 PM, [email protected] 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 p