Skip to content

[BUG] FileNotFoundError, wdc tries to pull files from the wrong skin dir? #267

@silke-99

Description

@silke-99

Hi,

I just newly installed your skin on top of a weewx 5.0.2 installation that already runs Belchertown and some other skins. I did not change much yet in the config, apart from changing base_path and HTML_dir and trying to activate forecasting.

Overall I managed to create content, but some stuff (e.g. statistics page) I can't get to generate.

I see these errors below in the log. They are coming from the following 4 templates

statistics.html.tmpl,
celestial.html.tmpl
offline.html.tmpl
about.html.tmpl

and they are all trying to get includes from the Belchertown skin dir! Why is that? Why is it not looking in its own skin dir instead?

Thanks a lot, otherwise really a great looking skin!

weewxd[2173619]: ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/weewx-wdc/statistics.html.tmpl failed with exception '<class 'FileNotFoundError'>'
weewxd[2173619]: ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/weewx-wdc/statistics.html.tmpl
weewxd[2173619]: ERROR weewx.cheetahgenerator: **** Reason: [Errno 2] No such file or directory: '/etc/weewx/skins/Belchertown/includes/combined-diagram-tile.inc'
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 334, in generate
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_weewx_wdc_statistics_html_tmpl.py", line 250, in respond
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1708, in _handleCheetahInclude
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****      self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_weewx_wdc_includes_climatological_days_inc.py", line 833, in respond
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1685, in _handleCheetahInclude
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****      nestedTemplateClass = compiler.compile(source=source,
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 738, in compile
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****      fileHash += str(os.path.getmtime(file))
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****                      ^^^^^^^^^^^^^^^^^^^^^^
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****    File "<frozen genericpath>", line 55, in getmtime
weewxd[2173619]: ERROR weewx.cheetahgenerator: ****  FileNotFoundError: [Errno 2] No such file or directory: '/etc/weewx/skins/Belchertown/includes/combined-diagram-tile.inc'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions