OK, I had to do a bunch of stuff to get an owfs package built for my
current system (Seagate DockStar - an ARM5 PogoPlug variant), so am using
the new 2.8p0, along with Python 2.6.5.

Try making this change to /usr/lib/python2.6/site-packages/ow/__init__.py
(or wherever your's lives):

The change is at line 345 or thereabouts. I wasn't able to test very much
as I only have the USB adapter itself with its DS1420, but this breaks the
recursion.

        #print 'Sensor.__getattr__', name
        #if name in self._attrs:
        if '_attrs' in self.__dict__ and name in self._attrs:

Unified diff is:
--- ./build/lib.linux-armv5tel-2.6/ow/__init__.py       2008-05-19
22:25:26.000000000 -0400
+++ /usr/lib/python2.6/site-packages/ow/__init__.py     2010-08-03
00:55:55.000000000 -0400
@@ -343,7 +343,8 @@
         and thr PIO.0 might be 1.
         """
         #print 'Sensor.__getattr__', name
-        if name in self._attrs:
+        #if name in self._attrs:
+        if '_attrs' in self.__dict__ and name in self._attrs:
             attr = owfs_get( self._attrs[ name ] )
         else:
             raise AttributeError, name

I don't know if this will produce anything meaningful on a real network,
or if it will break when setting seomething, but at least I get this now:

[r...@plugbox examples]# ./tree.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
1:5.
DEFAULT: ow_usb_cycle.c:DS9490_ID_this_master(191) Set DS9490 1:5 unique
id to 81 33 3F 24 00 00 00 8B
 DS9490 - /
 DS1420 - /81.333F24000000

Hope it helps.

Paul

On Mon, 2 Aug 2010 11:55:20 -0700, Jim Kusznir <[email protected]> wrote:
> We bumped ours up pretty huge, but it still hit it.  When we did some
> debugging, there was an infinite recursion at the point I pointed out
> in the previously-cited thread.
> 
> --Jim
> 


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to