Hi Arne, When you add the ForecastVariables, you are causing more exfoliation skin template code to execute, and that code has issues when running under Python3.
Unfortunately, I am unable to reproduce your issue. With the changes I made to exfoliation, I am able to view forecasts in exfoliation with no issue (BTW, not WU as that no longer works with forecast.) I’m assuming you did remember to install my updated exfoliation skin. As such, it is likely a different path you are taking through the exfoliation code due to a different configuration. If you want, please send any files you have changed in exfoliation. With those changes, perhaps I can duplicate your errors. BTW, it would probably be good to send those errors again, just in case they aren’t exactly the same ones as before. > On Jul 18, 2020, at 10:32 PM, Arne Berglund <[email protected]> wrote: > > > Happy to try it. Works fine, until I take the final step to add the > ForecastVariables to the CheetahGenerator block. As soon as I do that it > starts skipping index.html.tmpl with the errors posted above. Still > complaining about a type error. > > FWIW, the server is the latest update of CentOS 8, with Python 3.6.8. I'm > using MySQL, not SQLite. > > >> On Saturday, July 18, 2020 at 8:40:58 PM UTC-7, John Kline wrote: >> I got it working. There were no changes to forecasting. >> >> exfoliation was not updated for WeeWX4/Py3. >> You are welcome to give it a try: >> https://github.com/chaunceygardiner/weewx-exfoliation >> If you are not up for it, that’s fine too. >> >>>> On Jul 18, 2020, at 8:16 PM, Arne Berglund <[email protected]> wrote: >>>> >>> >>> Thanks for checking, John. I'd like to have forecasting, but really don't >>> want to have to find and tweak a new skin. >>> >>>> On Saturday, July 18, 2020 at 7:40:36 PM UTC-7, John Kline wrote: >>>> I found it. >>>> >>>> I get errors without adding ForecastVariables. I’ll have a quick further >>>> look. >>>> >>>> Jul 18 19:34:05 judygirldog wee_reports[18730] ERROR >>>> weewx.cheetahgenerator: **** Ignoring template >>>> /home/weewx/skins/exfoliation/index.html.tmpl >>>> Jul 18 19:34:05 judygirldog wee_reports[18730] ERROR >>>> weewx.cheetahgenerator: **** Reason: '>' not supported between instances >>>> of 'str' and 'int' >>>> Jul 18 19:34:05 judygirldog wee_reports[18730] ERROR >>>> weewx.cheetahgenerator: **** Traceback (most recent call last): >>>> >>>> Jul 18 19:34:05 judygirldog wee_reports[18730] ERROR >>>> weewx.cheetahgenerator: **** File >>>> "/home/weewx/bin/weewx/cheetahgenerator.py", line 321, in generate >>>> >>>> Jul 18 19:34:05 judygirldog wee_reports[18730] ERROR >>>> weewx.cheetahgenerator: **** unicode_string = >>>> compiled_template.respond() >>>> Jul 18 19:34:05 judygirldog wee_reports[18730] ERROR >>>> weewx.cheetahgenerator: **** File >>>> "_home_weewx_skins_exfoliation_index_html_tmpl.py", line 1292, in respond >>>> >>>> Jul 18 19:34:05 judygirldog wee_reports[18730] ERROR >>>> weewx.cheetahgenerator: **** File >>>> "_home_weewx_skins_exfoliation_index_html_tmpl.py", line 497, in >>>> __errorCatcher43 >>>> >>>> >>>> Jul 18 19:34:05 judygirldog wee_reports[18730] ERROR >>>> weewx.cheetahgenerator: **** File "<string>", line 1, in <module> >>>> >>>> Jul 18 19:34:05 judygirldog wee_reports[18730] ERROR >>>> weewx.cheetahgenerator: **** File >>>> "_home_weewx_skins_exfoliation_index_html_tmpl.py", line 187, in >>>> get_windspeed_trend >>>> >>>> >>>> Jul 18 19:34:05 judygirldog wee_reports[18730] ERROR >>>> weewx.cheetahgenerator: **** TypeError: '>' not supported between >>>> instances of 'str' and 'int' >>>> Jul 18 19:34:07 judygirldog wee_reports[18730] INFO >>>> weewx.cheetahgenerator: Generated 8 files for report exfoliation in 3.22 >>>> seconds >>>> Jul 18 19:34:19 judygirldog wee_reports[18730] INFO weewx.imagegenerator: >>>> Generated 68 images for report exfoliation in 11.41 seconds >>>> >>>> Jul 18 19:34:19 judygirldog wee_reports[18730] INFO weewx.reportengine: >>>> Copied 92 files to /home/weewx/public_html/exfoliation >>>> >>>> >>>> >>>> >>>>>> On Jul 18, 2020, at 7:26 PM, John Kline <[email protected]> wrote: >>>>>> >>>>> >>>>> Do you see the forecast reports? >>>>> >>>>> Where did you get exfoliation 0.45? >>>>> Is it WeeWX 4 compatible? If it is, I’ll give it a try. >>>>> >>>>>>> On Jul 18, 2020, at 7:18 PM, Arne Berglund <[email protected]> wrote: >>>>>>> >>>>>> >>>>>> Thanks for that link. Unfortunately, it still gives an error. >>>>>> >>>>>> Everything seems to work fine, until I add the search_list_extensions >>>>>> into skin.conf (using exfoliation 0.45). >>>>>> >>>>>> When I add the third line here: >>>>>> >>>>>> [CheetahGenerator] >>>>>> encoding = html_entities >>>>>> search_list_extensions = user.forecast.ForecastVariables >>>>>> >>>>>> I get the following error in the log: >>>>>> >>>>>> Jul 18 19:11:18 localhost journal[14057]: weewx[14057] ERROR >>>>>> weewx.cheetahgenerator: Generate failed with exception '<class >>>>>> 'TypeError'>' >>>>>> Jul 18 19:11:18 localhost journal[14057]: weewx[14057] ERROR >>>>>> weewx.cheetahgenerator: **** Ignoring template >>>>>> /etc/weewx/skins/exfoliation/index.html.tmpl >>>>>> Jul 18 19:11:18 localhost journal[14057]: weewx[14057] ERROR >>>>>> weewx.cheetahgenerator: **** Reason: '>' not supported between instances >>>>>> of 'NoneType' and 'int' >>>>>> Jul 18 19:11:18 localhost journal[14057]: weewx[14057] ERROR >>>>>> weewx.cheetahgenerator: **** Traceback (most recent call last): >>>>>> Jul 18 19:11:18 localhost journal[14057]: weewx[14057] ERROR >>>>>> weewx.cheetahgenerator: **** File >>>>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate >>>>>> Jul 18 19:11:18 localhost journal[14057]: weewx[14057] ERROR >>>>>> weewx.cheetahgenerator: **** unicode_string = >>>>>> compiled_template.respond() >>>>>> Jul 18 19:11:18 localhost journal[14057]: weewx[14057] ERROR >>>>>> weewx.cheetahgenerator: **** File >>>>>> "_etc_weewx_skins_exfoliation_index_html_tmpl.py", line 1092, in respond >>>>>> Jul 18 19:11:18 localhost journal[14057]: weewx[14057] ERROR >>>>>> weewx.cheetahgenerator: **** TypeError: '>' not supported between >>>>>> instances of 'NoneType' and 'int' >>>>>> >>>>>> Have I done something boneheaded? >>>>>> -- >>>>>> 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]. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/weewx-user/b484de7a-7d6c-4697-aa06-5be860f51354o%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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/cbf64ac7-7657-48af-aad5-8e295821ac0fo%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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/a6cc0958-b893-4304-af7f-bf1057f5d185o%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/03C2CD08-42BA-4C1E-9110-B786D739E8B3%40johnkline.com.
