cannot find 'theme' Belchertown

56 views
Skip to first unread message

Jose

unread,
Jun 11, 2020, 6:50:55 AM6/11/20
to weewx-user
Hi 

I have just installed WeeWX v4.1 with skin Belchertown v1.1 

This is the second time I have to reinstall due to failure while updating the system which caused general failure and raspberry will not reboot anymore

The previous time everything worked fine without problems from scratch. WeeWx 4.1 and Belchertown 1.1 no problem.

This time I had to face many error messages (I don't know why), for example, the system remembering that the 'smartphone' folder (and its contents) is not included in the Belchertown skin Once I faced this problem, the following error is shown as below ...


Jun 11 12:25:20 raspberrypi weewx[1163] ERROR weewx.cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Jun 11 12:25:20 raspberrypi weewx[1163] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/Belchertown/index.html.tmpl
Jun 11 12:25:20 raspberrypi weewx[1163] ERROR weewx.cheetahgenerator: **** Reason: cannot find 'theme' while searching for 'Extras.theme'
Jun 11 12:25:20 raspberrypi weewx[1163] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Jun 11 12:25:20 raspberrypi weewx[1163] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
Jun 11 12:25:20 raspberrypi weewx[1163] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Jun 11 12:25:20 raspberrypi weewx[1163] ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_Belchertown_index_html_tmpl.py", line 665, in respond
Jun 11 12:25:20 raspberrypi weewx[1163] ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1707, in _handleCheetahInclude
Jun 11 12:25:20 raspberrypi weewx[1163] ERROR weewx.cheetahgenerator: ****      self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
Jun 11 12:25:20 raspberrypi weewx[1163] ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_Belchertown_header_html_tmpl.py", line 91, in respond
Jun 11 12:25:20 raspberrypi weewx[1163] ERROR weewx.cheetahgenerator: ****  NameMapper.NotFound: cannot find 'theme' while searching for 'Extras.theme'


As a result skin Standard is working instead of Belchertown. 

Belchertown skin is installed correctly following https://github.com/poblabs/weewx-belchertown#install-weewx-belchertown as I did last time. 

Any ideas?

Pat

unread,
Jun 11, 2020, 8:29:16 AM6/11/20
to weewx-user
I would say re-install Belchertown in place. Your Belchertown skin.conf is missing at least this option, there could be others. A quick reinstall (wee_extension --install) and restart of weewx should fix it. 

Jose

unread,
Jun 11, 2020, 9:18:30 AM6/11/20
to weewx-user
you are right. a quick reinstall fixed it. thanks Pat . 
Reply all
Reply to author
Forward
0 new messages