On Monday 16 August 2010, Norman Elliott elucidated thus:
> All done again and now no complaint about ow but I get:
>
> ./temperature.py u
> DEFAULT: ow_ds9490.c:DS9490_detect(268) Unclear what <> means in USB
> specification, will use first adapter.
> DEFAULT: ow_usb_msg.c:DS9490_open(263) Opened USB DS9490 bus master
> at 7:2. DEFAULT: ow_usb_cycle.c:DS9490_ID_this_master(191) Set DS9490
> 7:2 unique id to 81 FC 58 2B 00 00 00 EA
> Exception RuntimeError: 'maximum recursion depth exceeded while
> calling a Python object' in <type 'exceptions.AttributeError'>
> ignored /21.B5FB22000000           23

Known bug.

The attached file fixes it, and should be included in the next release.

j

-- 
Joshua J. Kugler - Fairbanks, Alaska
Azariah Enterprises - Programming and Website Design
[email protected] - Jabber: [email protected]
PGP Key: http://pgp.mit.edu/  ID 0x73B13B6A
--- __init__.py.orig    2010-08-03 20:55:50.000000000 -0800
+++ __init__.py 2010-08-03 21:10:59.000000000 -0800
@@ -343,14 +343,11 @@
         and thr PIO.0 might be 1.
         """
         #print 'Sensor.__getattr__', name
-        if name in self._attrs:
-            attr = owfs_get( self._attrs[ name ] )
-        else:
+        try:
+            return owfs_get(object.__getattribute__(self, '_attrs')[name])
+        except KeyError:
             raise AttributeError, name

-        return attr
-
-
     def __setattr__( self, name, value ):
         """
         Set the value of a sensor attribute. This is accomplished by
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to