Hi mick,

this means that the find () method didnt find anything ... i assume your
id is wrong ... see pascals post on that:

> I guess this would do better:
> s = root.find (id="10.0D54A9010800")[0]
> even if only one element is returned, the find returns a list, the [0]
> at the end indicate that you select the first element.

so you should specify the id in this format in the "LivingRoom"
class ...

regards,
marcus.

Am Dienstag, den 06.04.2010, 22:57 +0100 schrieb Mick Sulley:
> I now get 
> 
> Traceback (most recent call last):
>   File "./pyowfs_test3.py", line 22, in <module>
>     room = LivingRoom (connection)
>   File "./pyowfs_test3.py", line 11, in __init__
>     self.sensor = connection.find (id = self.id)[0]
> IndexError: list index out of range



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to