Hi all: Our lab has been fighting against a problem recently with owfs and python 2.6.
We had been happily using python 2.5 and owfs p22 for quite some time. Its been nice and stable, and life was good. Unfortunately, we had a new piece of code that required us to upgrade our python system. Ever since upgrading to 2.6, our attempts at running our software blow up. Our software engineer on the project traced the blow-up to when he called an owfs function. The blow-up is a recursion depth problem,a nd in the process, it only sees one OW device on our network now. So, first thing we did: upgraded to the latest version of owfs (p39), and retry. Unfortunately, the behavior is the same. We're at a loss, as we have stripped out as much of our code as possible. I'm currently trying to get a dev machine going on python2.5 again to try and concretely nail down the problem, but for the moment, this is what I have. Any suggestions? Here's sample output: casasdbu...@debug /usr/local/CASAS $ ./casas_OneWireAgent.py authenticated raw = 12.748046000000/,12.DD365F000000/,81.05412A000000/,bus.0/,settings/,system/,statistics/,structure/ ['12.748046000000/', '12.DD365F000000/', '81.05412A000000/', 'bus.0/', 'settings/', 'system/', 'statisti see: 12.748046000000/ addSensor( 12.748046000000/ ) Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.Att ERROR: Sensor Initialization [12.748046000000/] see: 12.DD365F000000/ addSensor( 12.DD365F000000/ ) Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.Att ERROR: Sensor Initialization [12.DD365F000000/] see: 81.05412A000000/ addSensor( 81.05412A000000/ ) Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.Att see: bus.0/ addSensor( bus.0/ ) Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.Att Error in addSensor(bus.0/) see: settings/ addSensor( settings/ ) Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.Att Error in addSensor(settings/) see: system/ addSensor( system/ ) Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.Att Error in addSensor(system/) see: statistics/ addSensor( statistics/ ) Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.Att Error in addSensor(statistics/) see: structure/ addSensor( structure/ ) Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.Att Error in addSensor(structure/) see: alarm/ addSensor( alarm/ ) Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.Att Error in addSensor(alarm/) OneWire Network Initialized Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <type 'excep Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <type 'excep Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <type 'excep ^Ccleaning up Traceback (most recent call last): File "./casas_OneWireAgent.py", line 375, in <module> mycon.finish() File "./casas_OneWireAgent.py", line 274, in finish self.xmpp.disconnect() File "/usr/local/CASAS/casas/xmpp.py", line 122, in disconnect self.reactor.stop() File "/usr/lib/python2.6/site-packages/twisted/internet/base.py", line 553, in stop "Can't stop reactor that isn't running.") twisted.internet.error.ReactorNotRunning: Can't stop reactor that isn't running. ------------- Failure occurred at new = ow.Sensor(newsensor); class Sensors: def __init__(self): self.data = dict() self.valid = ["DS2406","DS18B20","DS2450"] self.publish = None return def addSensor(self, sensor): print "addSensor( %s )" % sensor newsensor = "/%s" % sensor[:-1] try: new = ow.Sensor(newsensor) except: print "Error in addSensor(%s)" % sensor return <snip> Any suggestions on this? Thanks! --Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers