[PEAK] Need help interpreting traceback

R. David Murray rdmurray at bitdance.com
Wed Oct 20 13:19:13 EDT 2004


As soon as I sent that last email I found the spelling error.  What
I did was to copy the Accounts=Obtain... from my Command object directly in
to the loadacctsCmd.  The traceback I got from running it *that*
way pointed right to the problem.  The question in my mind is why
didn't I get *this* traceback when the DM was being acquired through
the Command object?

Traceback (most recent call last):
  File "/usr/local/bin/peak", line 4, in ?
    commands.runMain( commands.Bootstrap )
  File "/usr/local/lib/python2.4/site-packages/peak/running/commands.py", line 70, in runMain
    result = factory().run()
  File "/usr/local/lib/python2.4/site-packages/peak/running/commands.py", line 211, in run
    return self._run() or 0
  File "/home/rdmurray/proj/fcgbilling/commands.py", line 102, in _run
    acct = self.Accounts.newItem()
  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 518, in __call__
    return adapt(importString(self.subject), IRecipe)(
  File "/usr/local/lib/python2.4/site-packages/peak/util/imports.py", line 79, in importString
    item = __import__('.'.join(path), globalDict, globalDict, ['__name__'])
  File "/home/rdmurray/proj/fcgbilling/storage.py", line 5, in ?
    class AccountDM(storage.EntityDM):
  File "/home/rdmurray/proj/fcgbilling/storage.py", line 9, in AccountDM
    Accounts = binding.Obtain(storage.DMfor(Account))
AttributeError: 'LazyModule' object has no attribute 'DMfor'



More information about the PEAK mailing list