--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/09a70440-5968-43ba-a1ef-6ee23306f2d2%40googlegroups.com.
Thanks, PaulCould you temporarily replace your copy of units.py with the attached? It will log some clues about what's causing the decode error.
On Wed, Jan 22, 2020 at 6:04 PM P Simmons <mbat...@gmail.com> wrote:
--Howdy! I had no problems using v4.0.0b6 but decided to upgrade to v4.0.0b9.I'm now having problems with report generation.Here are my (sanitized) conf and log files.Thank you,Paul
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 weewx...@googlegroups.com.
Thanks, PaulCould you temporarily replace your copy of units.py with the attached? It will log some clues about what's causing the decode error.
Jan 23 13:10:14 stretch40 weewx[1174] INFO weewx.manager: Added record 2020-01-23 13:10:00 AEST (1579749000) to database 'weewx.sdb'
Jan 23 13:10:14 stretch40 weewx[1174] INFO weewx.manager: Added record 2020-01-23 13:10:00 AEST (1579749000) to daily summary in 'weewx.sdb'
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.units: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: Generate failed with exception '<type 'exceptions.UnicodeDecodeError'>'
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** Ignoring template /home/weewx/skins/Seasons/index.html.tmpl
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** Reason: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last):
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 329, in generate
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond()
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "_home_weewx_skins_Seasons_index_html_tmpl.py", line 214, in respond
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1615, in _handleCheetahInclude
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "_home_weewx_skins_Seasons_current_inc.py", line 355, in respond
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 642, in filter
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** filtered = six.text_type(val)
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 1051, in __str__
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** return self.toString()
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 1046, in toString
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** localize=localize)
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 778, in toString
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** log.error("val_str=%s; type(val_str)=%s; s=%s; type(s)=%s" % (val_str, type(val_str), s, type(s)))
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.units: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: Generate failed with exception '<type 'exceptions.UnicodeDecodeError'>'
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** Ignoring template /home/weewx/skins/Seasons/rss.xml.tmpl
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** Reason: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last):
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 329, in generate
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond()
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "_home_weewx_skins_Seasons_rss_xml_tmpl.py", line 131, in respond
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 642, in filter
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** filtered = six.text_type(val)
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 1051, in __str__
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** return self.toString()
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 1046, in toString
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** localize=localize)
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 778, in toString
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** log.error("val_str=%s; type(val_str)=%s; s=%s; type(s)=%s" % (val_str, type(val_str), s, type(s)))
Jan 23 13:10:15 stretch40 weewx[1174] ERROR weewx.cheetahgenerator: **** UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
Jan 23 13:10:15 stretch40 weewx[1174] INFO weewx.cheetahgenerator: Generated 6 files for report SeasonsReport in 0.41 seconds
Jan 23 13:10:15 stretch40 weewx[1174] INFO weewx.imagegenerator: Generated 14 images for SeasonsReport in 0.14 seconds
Jan 23 13:10:15 stretch40 weewx[1174] INFO weewx.reportengine: Copied 5 files to /home/weewx/public_html
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/ddd6525f-4dbe-44c5-b3d5-1d69d35a8562%40googlegroups.com.
Jan 24 09:10:51 stretch40 weewx[777] INFO weewx.engine: Starting main packet loop.
Jan 24 09:15:16 stretch40 weewx[777] INFO weewx.manager: Added record 2020-01-24 09:15:00 AEST (1579821300) to database 'weewx.sdb'
Jan 24 09:15:16 stretch40 weewx[777] INFO weewx.manager: Added record 2020-01-24 09:15:00 AEST (1579821300) to daily summary in 'weewx.sdb'
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.units: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.units: val_str=0.3
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.units: type(val_str)=<type 'unicode'>
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.units: s=°C
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.units: type(s)=<type 'str'>
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: Generate failed with exception '<type 'exceptions.UnicodeDecodeError'>'
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** Ignoring template /home/weewx/skins/Seasons/index.html.tmpl
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** Reason: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last):
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 329, in generate
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond()
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "_home_weewx_skins_Seasons_index_html_tmpl.py", line 214, in respond
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1615, in _handleCheetahInclude
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "_home_weewx_skins_Seasons_current_inc.py", line 355, in respond
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 642, in filter
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** filtered = six.text_type(val)
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 1054, in __str__
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** return self.toString()
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 1049, in toString
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** localize=localize)
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 775, in toString
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** val_str += s
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.units: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.units: val_str=0.3
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.units: type(val_str)=<type 'unicode'>
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.units: s=°C
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.units: type(s)=<type 'str'>
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: Generate failed with exception '<type 'exceptions.UnicodeDecodeError'>'
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** Ignoring template /home/weewx/skins/Seasons/rss.xml.tmpl
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** Reason: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last):
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 329, in generate
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond()
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "_home_weewx_skins_Seasons_rss_xml_tmpl.py", line 131, in respond
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 642, in filter
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** filtered = six.text_type(val)
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 1054, in __str__
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** return self.toString()
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 1049, in toString
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** localize=localize)
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 775, in toString
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** val_str += s
Jan 24 09:15:17 stretch40 weewx[777] ERROR weewx.cheetahgenerator: **** UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
Jan 24 09:15:17 stretch40 weewx[777] INFO weewx.cheetahgenerator: Generated 6 files for report SeasonsReport in 0.42 seconds
Jan 24 09:15:17 stretch40 weewx[777] INFO weewx.imagegenerator: Generated 14 images for SeasonsReport in 0.13 seconds
Jan 24 09:15:17 stretch40 weewx[777] INFO weewx.reportengine: Copied 5 files to /home/weewx/public_html
Grumble!Try this one.
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7bf9adfb-73be-48ad-b188-fa3caf87b86c%40googlegroups.com.
gary@stretch40:~/src/weewx$ python2 -c "import configobj; print(configobj.__version__)"
5.0.6
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6a38344c-aa3e-4d86-9425-e3fb1dda875b%40googlegroups.com.
Rats. Try this version.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6a38344c-aa3e-4d86-9425-e3fb1dda875b%40googlegroups.com.
Rats. Try this version.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6a38344c-aa3e-4d86-9425-e3fb1dda875b%40googlegroups.com.
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/a7dc4e3c-a223-4344-ba8e-f4fd58a23168%40googlegroups.com.
Could you all do a pull and give it another try? The flow path between byte strings and unicode are more controlled now, making the results less prone to decode errors.At least, that's the theory!-tk
On Thu, Jan 23, 2020 at 8:48 PM P Simmons <mbat...@gmail.com> wrote:
--Updated to db1b41e, problem solved.Thanks!Paul
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 weewx...@googlegroups.com.
Could you all do a pull and give it another try? The flow path between byte strings and unicode are more controlled now, making the results less prone to decode errors.At least, that's the theory!-tk
Could you all do a pull and give it another try? The flow path between byte strings and unicode are more controlled now, making the results less prone to decode errors.At least, that's the theory!-tk
On Thu, Jan 23, 2020 at 8:48 PM P Simmons <mbat...@gmail.com> wrote:
--Updated to db1b41e, problem solved.Thanks!Paul
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 weewx...@googlegroups.com.