Ha, first version worked fine! Second version was fine too. Checked under 
both python 2 and 3.

Gary

On Friday, 24 January 2020 11:16:52 UTC+10, Thomas Keffer wrote:
>
> Rats. Try this version.
>
> On Thu, Jan 23, 2020 at 5:07 PM Thomas Keffer <tke...@gmail.com 
> <javascript:>> wrote:
>
>> Try replacing your version of weewx/defaults.py with the attached and 
>> see if that helps.
>>
>> Bit of a hack. I'll keep searching for something more elegant.
>>
>> On Thu, Jan 23, 2020 at 3:54 PM Thomas Keffer <tke...@gmail.com 
>> <javascript:>> wrote:
>>
>>> Just as I suspected. The patch that fixed things for configobj v4.7.2, 
>>> broke v5.0.6. 
>>>
>>> Can't help but feel that I'm approaching this all wrong. Got to give it 
>>> a deep think.
>>>
>>> -tk
>>>
>>> On Thu, Jan 23, 2020 at 3:38 PM gjr80 <gjrod...@gmail.com <javascript:>> 
>>> wrote:
>>>
>>>> 5.0.6
>>>>
>>>> gary@stretch40:~/src/weewx$ python2 -c "import configobj; 
>>>> print(configobj.__version__)"
>>>> 5.0.6
>>>>
>>>> Gary
>>>>
>>>> On Friday, 24 January 2020 09:37:04 UTC+10, Thomas Keffer wrote:
>>>>>
>>>>> OK, now we know what went wrong, but we don't know why.
>>>>>
>>>>> What version of ConfigObj are you using?
>>>>>
>>>>> *python2 -c "import configobj; print(configobj.__version__)"*
>>>>>
>>>>> -tk
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Jan 23, 2020 at 3:22 PM gjr80 <gjrod...@gmail.com> wrote:
>>>>>
>>>>>> That got it!
>>>>>>
>>>>>> Gary
>>>>>>
>>>>>> 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
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thursday, 23 January 2020 23:35:54 UTC+10, Thomas Keffer wrote:
>>>>>>>
>>>>>>> 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...@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
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/weewx-user/7bf9adfb-73be-48ad-b188-fa3caf87b86c%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> -- 
>>>> 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 <javascript:>.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/weewx-user/6a38344c-aa3e-4d86-9425-e3fb1dda875b%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/weewx-user/6a38344c-aa3e-4d86-9425-e3fb1dda875b%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/965f7573-a993-45bc-b5ad-b0dbdfa7c87e%40googlegroups.com.

Reply via email to