Re: AttributeError: 'NoneType' object has no attribute 'replace'
"P.J. Eby" <pje-Wh6+Hckhi6HFNGf7iClzIwC/[email protected]> Tue, 31 Mar 2009 10:11:37 -0400
| Newsgroups | gmane.comp.python.peak |
|---|---|
| Message-ID | <[email protected]> |
At 04:02 PM 3/31/2009 +0300, Peter Damoc wrote: >This is a weird error, feels familiar somehow... > >Traceback (most recent call last): > File "bdlite.py", line 3, in <module> > File "zipextimporter.pyo", line 82, in load_module > File "panels\__init__.pyo", line 1, in <module> > File "zipextimporter.pyo", line 82, in load_module > File "panels\background.pyo", line 3, in <module> > File "zipextimporter.pyo", line 82, in load_module > File "peak\events\trellis.pyo", line 332, in <module> > File "peak\events\trellis.pyo", line 365, in SensorBase > File "peak\events\trellis.pyo", line 365, in SensorBase > File "peak\util\decorators.pyo", line 576, in tracer > File "peak\util\decorators.pyo", line 32, in callback > File "peak\events\trellis.pyo", line 309, in modifier > File "peak\util\decorators.pyo", line 59, in apply_template >AttributeError: 'NoneType' object has no attribute 'replace' You're apparently using -OO instead of -O, and that's removing one of the docstrings that peak.util.decorators is using as a function template. Presumably, it's a docstring in the trellis library. Anyway, it means you need to use -O1 instead of -O2 to any distutils build commands involved.