[PEAK] need hints on PEAK twisted support

Ulrich Eck ueck at net-labs.de
Thu Apr 8 12:24:53 EDT 2004


try to replace the line:

[peak.logs]
* = logs.LogStream(stream=importString('sys.stderr'), level=logs.DEBUG)

with:

[peak.logs]
* = logs.LogStream(stream=importString('sys.stderr'), levelName='DEBUG')

bulletins was not refactored for a3 release i think.

cheers Ulrich

On Thu, 2004-04-08 at 17:57, Stephen Waterbury wrote:
> Ulrich Eck wrote:
> >>So now for my newbie questions:
> >>(1)  The bulletins executable doesn't work for me. ...
> > 
> > have you set the PYTHONPATH to ./src ?
> > cd examples/bulletins
> > export PYTHONPATH=./src:$PYTHONPATH
> > peak runIni bulletins createdb
> 
> Thanks, Ulrich -- maybe that should be in the README?
> I get a better traceback now ... :)
> 
> [waterbug at bigboote bulletins]$ peak runIni bulletins createdb
> Traceback (most recent call last):
>    File "/usr/local/bin/peak", line 4, in ?
>      commands.runMain( commands.Bootstrap )
>    File 
> "/usr/local/lib/python2.3/site-packages/peak/running/commands.py", line 
> 70, in runMain
>      result = factory().run()
>    File 
> "/usr/local/lib/python2.3/site-packages/peak/running/commands.py", line 
> 211, in run
>      return self._run() or 0
>    File 
> "/home/waterbug/src/Python/PEAK/cvs/PEAK/examples/bulletins/src/bulletins/commands.py", 
> line 28, in _run
>      self.log.info("Creating %s using DDL from %s",
>    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.3/site-packages/peak/binding/components.py", 
> line 524, in computeValue
>      return self.targetName.findComponent(obj, self.default)
>    File "/usr/local/lib/python2.3/site-packages/peak/naming/names.py", 
> line 198, in findComponent
>      return lookup(
>    File "/usr/local/lib/python2.3/site-packages/peak/naming/api.py", 
> line 53, in lookup
>      return InitialContext(parent, **options).lookup(name,default)
>    File 
> "/usr/local/lib/python2.3/site-packages/peak/naming/contexts.py", line 
> 398, in lookup
>      return self[name]
>    File 
> "/usr/local/lib/python2.3/site-packages/peak/naming/contexts.py", line 
> 357, in __getitem__
>      if ctx is not self: return ctx[name]
>    File 
> "/usr/local/lib/python2.3/site-packages/peak/naming/contexts.py", line 
> 359, in __getitem__
>      obj = self._getOb(name)
>    File 
> "/usr/local/lib/python2.3/site-packages/peak/naming/contexts.py", line 
> 442, in _getOb
>      state = self._get(name)
>    File "/usr/local/lib/python2.3/site-packages/peak/running/logs.py", 
> line 445, in _get
>      return self.logSvc.getLogger(name.body)
>    File "/usr/local/lib/python2.3/site-packages/peak/running/logs.py", 
> line 201, in getLogger
>      logger = self.loggers[name] = self.loggerNS[name]
>    File 
> "/usr/local/lib/python2.3/site-packages/peak/config/config_components.py", 
> line 546, in __getitem__
>      ob = self.get(key,NOT_FOUND)
>    File 
> "/usr/local/lib/python2.3/site-packages/peak/config/config_components.py", 
> line 555, in get
>      return lookup(
>    File 
> "/usr/local/lib/python2.3/site-packages/peak/config/config_components.py", 
> line 87, in lookup
>      for value in iterValues(component, configKey):
>    File 
> "/usr/local/lib/python2.3/site-packages/peak/config/config_components.py", 
> line 69, in iterValues
>      value = gcd(forObj, configKey)
>    File 
> "/usr/local/lib/python2.3/site-packages/peak/binding/components.py", 
> line 908, in _getConfigData
>      value = attr._getConfigData(forObj, configKey)
>    File 
> "/usr/local/lib/python2.3/site-packages/peak/config/config_components.py", 
> line 309, in _getConfigData
>      value = rule.get()(self, configKey, forObj)
>    File 
> "/usr/local/lib/python2.3/site-packages/peak/config/ini_files.py", line 
> 30, in f
>      result = eval(expr,globalDict,locals())
>    File "<string>", line 0, in ?
> AttributeError: 'LazyModule' object has no attribute 'DEBUG'
> 
> _______________________________________________
> PEAK mailing list
> PEAK at eby-sarna.com
> http://www.eby-sarna.com/mailman/listinfo/peak




More information about the PEAK mailing list