[PEAK] Current cvs peak errors

R. David Murray rdmurray at bitdance.com
Tue Nov 30 13:37:58 EST 2004


I did a cvs up today and reinstalled peak.  My program stopped
working (*wry grin*).  I ran peak test and got some errors, but
none of them seem to have anything to do with the problem that shows
up in my program.  It is quite possible I'm doing something wrong
that is triggering this, but was masked by something in the previous
version of the peak code.  But since some of the peak tests fail,
I'm wondering if I should treat current CVS as unstable and go back
to the version I was using before?  I'd like to try the option
framework, though, that's why I updated.

I'll include the traceback I'm getting from my program; you (PJE)
will probably know instantly what's going on here.  The attribute
it is looking up that triggers the infinate recursion is '_cursor'.
I'll noodle around and see if I can produce a simple test case.

Traceback (most recent call last):
  File "/usr/local/lib/python2.4/site-packages/peak/binding/components.py", line 567, in computeValue
    return self.targetName.findComponent(obj, self.default)
  File "/usr/local/lib/python2.4/site-packages/peak/binding/components.py", line 339, in findComponent
    if pc:  ob = pc(component)
  File "<string>", line 5, in getParentComponent
  File "C:\cygwin\home\pje\PyProtocols\src/protocols/_speedups.pyx", line 198, in _speedups.Protocol__call__
  File "C:\cygwin\home\pje\PyProtocols\src/protocols/_speedups.pyx", line 155, in _speedups._adapt
  File "/usr/local/lib/python2.4/site-packages/peak/storage/SQL.py", line 79, in __getattr__
    return getattr(self._cursor,attr)
  File "C:\cygwin\home\pje\PEAK\src/peak/binding/_once.pyx", line 112, in _once.BaseDescriptor.__get__
  File "C:\cygwin\home\pje\PEAK\src/peak/binding/_once.pyx", line 100, in _once.__get__
  File "/usr/local/lib/python2.4/site-packages/peak/binding/once.py", line 539, in <lambda>
    f = lambda s,d,a: func(s)
  File "/usr/local/lib/python2.4/site-packages/peak/storage/SQL.py", line 53, in <lambda>
    _cursor = binding.Make(lambda self: self._conn.cursor())
  File "C:\cygwin\home\pje\PEAK\src/peak/binding/_once.pyx", line 112, in _once.BaseDescriptor.__get__
  File "C:\cygwin\home\pje\PEAK\src/peak/binding/_once.pyx", line 100, in _once.__get__
  File "/usr/local/lib/python2.4/site-packages/peak/binding/components.py", line 567, in computeValue
    return self.targetName.findComponent(obj, self.default)
  File "/usr/local/lib/python2.4/site-packages/peak/binding/components.py", line 339, in findComponent
    if pc:  ob = pc(component)
  File "<string>", line 5, in getParentComponent
  File "C:\cygwin\home\pje\PyProtocols\src/protocols/_speedups.pyx", line 198, in _speedups.Protocol__call__
  File "C:\cygwin\home\pje\PyProtocols\src/protocols/_speedups.pyx", line 155, in _speedups._adapt
  File "/usr/local/lib/python2.4/site-packages/peak/storage/SQL.py", line 79, in __getattr__
    return getattr(self._cursor,attr)
  File "/usr/local/lib/python2.4/site-packages/peak/storage/SQL.py", line 79, in __getattr__
    return getattr(self._cursor,attr)
  File "/usr/local/lib/python2.4/site-packages/peak/storage/SQL.py", line 79, in __getattr__
    return getattr(self._cursor,attr)
  File "/usr/local/lib/python2.4/site-packages/peak/storage/SQL.py", line 79, in __getattr__
    return getattr(self._cursor,attr)
  File "/usr/local/lib/python2.4/site-packages/peak/storage/SQL.py", line 79, in __getattr__
    return getattr(self._cursor,attr)
  File "/usr/local/lib/python2.4/site-packages/peak/storage/SQL.py", line 79, in __getattr__
    return getattr(self._cursor,attr)
  [snip]



More information about the PEAK mailing list