Hi,
I get errors every now and then and it stops the generation of graphs.
May 8 08:00:20 jed164 weewx[10989]: manager: Daily summary version is 2.0
May 8 08:00:20 jed164 weewx[10989]: cheetahgenerator: Generate failed with
exception '<type 'exceptions.TypeError'>'
May 8 08:00:20 jed164 weewx[10989]: cheetahgenerator: **** Ignoring
template /etc/weewx/skins/Data/data.txt.tmpl
May 8 08:00:20 jed164 weewx[10989]: cheetahgenerator: **** Reason:
unsupported operand type(s) for -: 'NoneType' and 'NoneType'
May 8 08:00:20 jed164 weewx[10989]: **** Traceback (most recent call
last):
May 8 08:00:20 jed164 weewx[10989]: **** File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
May 8 08:00:20 jed164 weewx[10989]: **** print >> _file,
compiled_template
May 8 08:00:20 jed164 weewx[10989]: **** File
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
__str__
May 8 08:00:20 jed164 weewx[10989]: **** rc = getattr(self,
mainMethName)()
May 8 08:00:20 jed164 weewx[10989]: **** File
"_etc_weewx_skins_Data_data_txt_tmpl.py", line 227, in respond
May 8 08:00:20 jed164 weewx[10989]: **** TypeError: unsupported operand
type(s) for -: 'NoneType' and 'NoneType'
May 8 08:00:20 jed164 weewx[10989]: cheetahgenerator: Generated 0 files
for report Data in 0.02 seconds
Today I had it appear 3 times so there is "something" that makes it appear.
This is what is around line 1005:
mainMethNameAttr = '_mainCheetahMethod_for_'+concreteTemplateClass.__name__
mainMethName = getattr(concreteTemplateClass, mainMethNameAttr,
None)
if mainMethName:
def __str__(self):
rc = getattr(self, mainMethName)()
if isinstance(rc, unicode):
return rc.encode('utf-8')
return rc
def __unicode__(self):
return getattr(self, mainMethName)()
I don't know anything about python.
If anyone knows what this is that would be great.
Thanks
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.