Tom,  

One comment about the old and new database schema :  I didn't change 
anything by myself in the [DataBinding] section of weewx.conf after  the 
upgrade to V4.0, so I suspect that the  manager = weewx.manager.
DaySummaryManager  line  was automatically modified during the upgrade 
process.
Is it right ?

Le jeudi 4 juin 2020 16:39:22 UTC+2, Tom Keffer a écrit :
>
> My guess is that your system has a mix of old and new ways of specifying a 
> database schema.
>
> The old way:
>
> [DataBindings]
>     [[wx_binding]]
>         ...
>         # The manager handles aggregation of data for historical summaries
>         manager = weewx.manager.WXDaySummaryManager
>         schema = schemas.wview.schema
>
> The new way:
>
> [DataBindings]
>     [[wx_binding]]
>         ...
>         # The manager handles aggregation of data for historical summaries
>         manager = weewx.manager.DaySummaryManager
>         schema = schemas.wview_extended.schema
>
> I am guessing that you have:
>
> [DataBindings]
>     [[wx_binding]]        ...
>         # The manager handles aggregation of data for historical summaries
>         manager = weewx.manager.DaySummaryManager
>         schema = schemas.wview.schema
>
>
> Go with one or the other, but don't mix.
>
> Or, I could be completely off on this!
>
> -tk
>
>
> On Wed, Jun 3, 2020 at 11:36 PM Jacques Terrettaz <jterr...@gmail.com 
> <javascript:>> wrote:
>
>> Interestingly, I had the same kind of errors yesterday concerning wind 
>> tags such as *day.wind.count.raw* , *month.wind.count.raw*, *day.wind.max. 
>>   *
>> This happened after I deleted all daily mysql tables and let weewx 
>> rebuild them at startup.
>> I am using weewx V4.1.1
>> Finally, I restored a full backup of the weewx database, and the error 
>> disapeared.
>>
>>
>>
>>
>> *Jun  3 08:40:19 meteopi weewx[18757] INFO user.sunduration: Calculated 
>> sunshine_time = 5.000000, based on radiation = 343.000000 and threshold = 
>> 266.400000Jun  3 08:40:19 meteopi weewx[18757] INFO weewx.manager: Added 
>> record 2020-06-03 08:40:00 CEST (1591166400) to database 'weewx'Jun  3 
>> 08:40:20 meteopi weewx[18757] INFO weewx.manager: Added record 2020-06-03 
>> 08:40:00 CEST (1591166400) to daily summary in 'weewx'Jun  3 08:40:20 
>> meteopi weewx[18757] INFO weewx.restx: Newdata: Published record 2020-06-03 
>> 08:40:00 CEST (1591166400)Jun  3 08:40:20 meteopi weewx[18757] INFO 
>> weewx.restx: Emetsys: Published record 2020-06-03 08:40:00 CEST 
>> (1591166400)Jun  3 08:40:20 meteopi weewx[18757] INFO weewx.restx: Romma: 
>> Published record 2020-06-03 08:40:00 CEST (1591166400)Jun  3 08:40:21 
>> meteopi weewx[18757] ERROR weewx.cheetahgenerator: Generate failed with 
>> exception '<class 'NameMapper.NotFound'>'Jun  3 08:40:21 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: **** Ignoring template 
>> /etc/weewx/skins/Seasons/NOAA/NOAA-%Y-%m.txt.tmplJun  3 08:40:21 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: **** Reason: cannot find 'count' 
>> while searching for 'day.wind.count.raw'Jun  3 08:40:21 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: ****  Traceback (most recent 
>> call last):Jun  3 08:40:21 meteopi weewx[18757] ERROR 
>> weewx.cheetahgenerator: ****    File 
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generateJun  3 
>> 08:40:21 meteopi weewx[18757] ERROR weewx.cheetahgenerator: ****     
>>  unicode_string = compiled_template.respond()Jun  3 08:40:21 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: ****    File 
>> "_etc_weewx_skins_Seasons_NOAA_NOAA__Y__m_txt_tmpl.py", line 431, in 
>> respondJun  3 08:40:21 meteopi weewx[18757] ERROR weewx.cheetahgenerator: 
>> ****  NameMapper.NotFound: cannot find 'count' while searching for 
>> 'day.wind.count.raw'Jun  3 08:40:21 meteopi weewx[18757] INFO weewx.restx: 
>> Windy: Published record 2020-06-03 08:40:00 CEST (1591166400)Jun  3 
>> 08:40:22 meteopi weewx[18757] ERROR weewx.cheetahgenerator: Generate failed 
>> with exception '<class 'NameMapper.NotFound'>'Jun  3 08:40:22 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: **** Ignoring template 
>> /etc/weewx/skins/Seasons/NOAA/NOAA-%Y.txt.tmplJun  3 08:40:22 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: **** Reason: cannot find 'count' 
>> while searching for 'month.wind.count.raw'Jun  3 08:40:22 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: ****  Traceback (most recent 
>> call last):Jun  3 08:40:22 meteopi weewx[18757] ERROR 
>> weewx.cheetahgenerator: ****    File 
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generateJun  3 
>> 08:40:22 meteopi weewx[18757] ERROR weewx.cheetahgenerator: ****     
>>  unicode_string = compiled_template.respond()Jun  3 08:40:22 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: ****    File 
>> "_etc_weewx_skins_Seasons_NOAA_NOAA__Y_txt_tmpl.py", line 862, in 
>> respondJun  3 08:40:22 meteopi weewx[18757] ERROR weewx.cheetahgenerator: 
>> ****  NameMapper.NotFound: cannot find 'count' while searching for 
>> 'month.wind.count.raw'Jun  3 08:40:26 meteopi weewx[18757] ERROR 
>> weewx.cheetahgenerator: Generate failed with exception '<class 
>> 'NameMapper.NotFound'>'Jun  3 08:40:26 meteopi weewx[18757] ERROR 
>> weewx.cheetahgenerator: **** Ignoring template 
>> /etc/weewx/skins/Seasons/rss.xml.tmplJun  3 08:40:26 meteopi weewx[18757] 
>> ERROR weewx.cheetahgenerator: **** Reason: cannot find 'max' while 
>> searching for 'day.wind.max'Jun  3 08:40:26 meteopi weewx[18757] ERROR 
>> weewx.cheetahgenerator: ****  Traceback (most recent call last):Jun  3 
>> 08:40:26 meteopi weewx[18757] ERROR weewx.cheetahgenerator: ****    File 
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generateJun  3 
>> 08:40:26 meteopi weewx[18757] ERROR weewx.cheetahgenerator: ****     
>>  unicode_string = compiled_template.respond()Jun  3 08:40:26 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: ****    File 
>> "_etc_weewx_skins_Seasons_rss_xml_tmpl.py", line 268, in respondJun  3 
>> 08:40:26 meteopi weewx[18757] ERROR weewx.cheetahgenerator: **** 
>>  NameMapper.NotFound: cannot find 'max' while searching for 
>> 'day.wind.max'Jun  3 08:40:26 meteopi weewx[18757] INFO 
>> weewx.cheetahgenerator: Generated 5 files for report SeasonsReport in 6.28 
>> secondsJun  3 08:41:21 meteopi weewx[18757] INFO weewx.imagegenerator: 
>> Generated 73 images for report SeasonsReport in 54.26 secondsJun  3 
>> 08:41:21 meteopi weewx[18757] INFO weewx.reportengine: Copied 5 files to 
>> /var/www/html/weewxJun  3 08:41:21 meteopi weewx[18757] ERROR 
>> weewx.cheetahgenerator: Generate failed with exception '<class 
>> 'NameMapper.NotFound'>'Jun  3 08:41:21 meteopi weewx[18757] ERROR 
>> weewx.cheetahgenerator: **** Ignoring template 
>> /etc/weewx/skins/tagssciez/weewxtags.txt.tmplJun  3 08:41:21 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: **** Reason: cannot find 
>> 'gustdir' while searching for 'day.wind.gustdir'Jun  3 08:41:21 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: ****  Traceback (most recent 
>> call last):Jun  3 08:41:21 meteopi weewx[18757] ERROR 
>> weewx.cheetahgenerator: ****    File 
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generateJun  3 
>> 08:41:21 meteopi weewx[18757] ERROR weewx.cheetahgenerator: ****     
>>  unicode_string = compiled_template.respond()Jun  3 08:41:21 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: ****    File 
>> "_etc_weewx_skins_tagssciez_weewxtags_txt_tmpl.py", line 247, in respondJun 
>>  3 08:41:21 meteopi weewx[18757] ERROR weewx.cheetahgenerator: **** 
>>  NameMapper.NotFound: cannot find 'gustdir' while searching for 
>> 'day.wind.gustdir'Jun  3 08:41:21 meteopi weewx[18757] INFO 
>> weewx.cheetahgenerator: Generated 0 files for report tagssciez in 0.51 
>> secondsJun  3 08:41:21 meteopi weewx[18757] INFO weewx.reportengine: Copied 
>> 0 files to /var/www/html/weewx/tagssciezJun  3 08:41:32 meteopi 
>> weewx[18757] INFO user.imageStackedWindRose: imageStackedWindRose: 
>> Generated 4 images for StackedWindRose in 10.42 secondsJun  3 08:41:33 
>> meteopi weewx[18757] INFO weewx.cheetahgenerator: Generated 1 files for 
>> report xstats in 0.82 secondsJun  3 08:41:33 meteopi weewx[18757] INFO 
>> user.belchertown: version 1.1Jun  3 08:41:38 meteopi weewx[18757] ERROR 
>> weewx.cheetahgenerator: Generate failed with exception '<class 
>> 'NameMapper.NotFound'>'Jun  3 08:41:38 meteopi weewx[18757] ERROR 
>> weewx.cheetahgenerator: **** Ignoring template 
>> /etc/weewx/skins/Belchertown/json/weewx_data.json.tmplJun  3 08:41:38 
>> meteopi weewx[18757] ERROR weewx.cheetahgenerator: **** Reason: cannot find 
>> 'max' while searching for 'day.wind.max'Jun  3 08:41:38 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: ****  Traceback (most recent 
>> call last):Jun  3 08:41:38 meteopi weewx[18757] ERROR 
>> weewx.cheetahgenerator: ****    File 
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generateJun  3 
>> 08:41:38 meteopi weewx[18757] ERROR weewx.cheetahgenerator: ****     
>>  unicode_string = compiled_template.respond()Jun  3 08:41:38 meteopi 
>> weewx[18757] ERROR weewx.cheetahgenerator: ****    File 
>> "_etc_weewx_skins_Belchertown_json_weewx_data_json_tmpl.py", line 485, in 
>> respondJun  3 08:41:38 meteopi weewx[18757] ERROR weewx.cheetahgenerator: 
>> ****  NameMapper.NotFound: cannot find 'max' while searching for 
>> 'day.wind.max'Jun  3 08:41:46 meteopi weewx[18757] INFO 
>> weewx.cheetahgenerator: Generated 10 files for report Belchertown in 12.51 
>> secondsJun  3 08:41:46 meteopi weewx[18757] INFO weewx.reportengine: Copied 
>> 31 files to /var/www/html/weewx/belchertownJun  3 08:42:00 meteopi 
>> weewx[18757] INFO paramiko.transport: Connected (version 2.0, client 
>> OpenSSH_7.4)Jun  3 08:42:01 meteopi weewx[18757] INFO paramiko.transport: 
>> Authentication (password) successful!Jun  3 08:42:01 meteopi weewx[18757] 
>> INFO paramiko.transport.sftp: [chan 0] Opened sftp connection (server 
>> version 3)Jun  3 08:42:42 meteopi weewx[18757] INFO 
>> paramiko.transport.sftp: [chan 0] sftp session closed.*
>>
>> -- 
>> 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/414ee244-cafc-402a-a7db-5d905718cb7b%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/414ee244-cafc-402a-a7db-5d905718cb7b%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/453bc807-6355-4074-a6dd-8b42fb491520o%40googlegroups.com.

Reply via email to