Error in skymapalmanac.py

188 views
Skip to first unread message

Dan Hinckley

unread,
Apr 3, 2026, 4:26:59 PM (8 days ago) Apr 3
to weewx...@googlegroups.com
Running 5.2 in a Parallels Ubuntu VM, on Mac mini 1 and finding this error.

I looked at line 204 but cannot spot what is causing the error.

weectl extension list
Using configuration file /home/house/weewx-data/weewx.conf
Extension Name    Version   Description
Belchertown       1.7beta2-new-belchertownA clean modern skin with real time streaming updates and interactive charts. Modeled after BelchertownWeather.com
Skyfield almanac  0.5       almanac extension using Skyfield mdule
Skymap almanac    0.5       almanac extension using Skyfield mdule
forecast          4.0       Generate and display weather and tide forecasts.
purple            4.0.3     Record air quality via purple-proxy service.
purpleair         0.4       Collect Purple Air air quality data.
weatherflowudp    1.10.2    Capture data from WeatherFlow Bridge via UDP broadcast packets

Log excerpt:
2026-04-03T16:21:47.632848-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: **** Reason: '©'
2026-04-03T16:21:47.648243-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
2026-04-03T16:21:47.649139-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****    File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/cheetahgenerator.py", line 334, in generate
2026-04-03T16:21:47.649664-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
2026-04-03T16:21:47.650214-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-04-03T16:21:47.650680-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****    File "_home_house_weewx_data_skins_Belchertown_skymap_index_html_tmpl.py", line 163, in respond
2026-04-03T16:21:47.652686-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****    File "_home_house_weewx_data_skins_Belchertown_skymap_index_html_tmpl.py", line 71, in __errorCatcher1
2026-04-03T16:21:47.653253-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****    File "<string>", line 1, in <module>
2026-04-03T16:21:47.653700-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****    File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/almanac.py", line 292, in __getattr__
2026-04-03T16:21:47.654656-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****      return almanac.get_almanac_data(self, attr)
2026-04-03T16:21:47.655906-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-04-03T16:21:47.658462-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****    File "/home/house/weewx-data/bin/user/skymapalmanac.py", line 147, in get_almanac_data
2026-04-03T16:21:47.660375-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****      return SkymapBinder(self.config_dict, self.station_location, almanac_obj, self.get_labels(almanac_obj))
2026-04-03T16:21:47.660995-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-04-03T16:21:47.661341-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****    File "/home/house/weewx-data/bin/user/skymapalmanac.py", line 204, in __init__
2026-04-03T16:21:47.663297-04:00 ubuntu-gnu-linux-24-04-3 weewxd[1303751]: ERROR weewx.cheetahgenerator: ****      #  self.credits = '%s %s' % (labels['©'],station_location)

Vince Skahan

unread,
Apr 3, 2026, 4:54:53 PM (8 days ago) Apr 3
to weewx-user
Try line 291 or so in that .py file.  I searched the file for the word ‘credits’.

Something seems to not like the copyright character in your setup.

Karen K

unread,
Apr 5, 2026, 4:01:19 PM (6 days ago) Apr 5
to weewx-user
It looks like a character set issue. You may try to replace the copyright symbol by &#169;.

weather list

unread,
Apr 5, 2026, 5:53:53 PM (6 days ago) Apr 5
to weewx...@googlegroups.com
Karen,

Running 5.2 in a Parallels Ubuntu VM, on Mac mini 1

(weewx-venv) house@ubuntu-gnu-linux-24-04-3:~$ weectl extension list
Using configuration file /home/house/weewx-data/weewx.conf
Extension Name    Version   Description
Belchertown       1.7beta2-new-belchertownA clean modern skin with real time streaming updates and interactive charts. Modeled after BelchertownWeather.com
Skyfield almanac  0.6       almanac extension using Skyfield mdule
Skymap almanac    0.6       almanac extension using Skyfield mdule
forecast          4.0       Generate and display weather and tide forecasts.
purple            4.0.3     Record air quality via purple-proxy service.
purpleair         0.4       Collect Purple Air air quality data.
weatherflowudp    1.10.2    Capture data from WeatherFlow Bridge via UDP broadcast packets


Just re-installed skymap and skyfield and I get this on startup (manual):

(weewx-venv) house@ubuntu-gnu-linux-24-04-3:~$ weewxd
Using configuration file /home/house/weewx-data/weewx.conf
Traceback (most recent call last):
  File "/home/house/weewx-venv/bin/weewxd", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/house/weewx-venv/lib/python3.12/site-packages/weewxd.py", line 121, in main
    engine = weewx.engine.StdEngine(config_dict)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/engine.py", line 89, in __init__
    self.loadServices(config_dict)
  File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/engine.py", line 157, in loadServices
    obj = weeutil.weeutil.get_object(svc)(self, config_dict)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/house/weewx-data/bin/user/skymapalmanac.py", line 2093, in __init__
    alm_conf_dict['Texts'] = self.process_language(config_dict, alm_conf_dict.get('additional_localization_sources',['internal','Seasons']))
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/house/weewx-data/bin/user/skymapalmanac.py", line 2174, in process_language
    SkymapService._update_localization_from_skin(conf, skin_root, source, lang)
  File "/home/house/weewx-data/bin/user/skymapalmanac.py", line 2357, in _update_localization_from_skin
    data = weewx.reportengine.get_lang_dict(lang, lang_path, skin)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/reportengine.py", line 407, in get_lang_dict
    config_dict['WEEWX_ROOT'],
    ~~~~~~~~~~~^^^^^^^^^^^^^^
TypeError: 'PosixPath' object is not subscriptable


And. When installing Skyfield I noticed this, which I don't recall seeing before:

weewx-venv) house@ubuntu-gnu-linux-24-04-3:~$ weectl extension install /home/house/Downloads/Weewx/Extensions/weewx-skyfield-almanac-master-April-4.zip -y
Using configuration file /home/house/weewx-data/weewx.conf
Extracting from zip archive /home/house/Downloads/Weewx/Extensions/weewx-skyfield-almanac-master-April-4.zip
processing skin SeasonsReport
merging es.conf to /home/house/weewx-data/skins/Seasons/lang/es.conf
merging nl.conf to /home/house/weewx-data/skins/Seasons/lang/nl.conf
merging de.conf to /home/house/weewx-data/skins/Seasons/lang/de.conf
merging fr.conf to /home/house/weewx-data/skins/Seasons/lang/fr.conf
merging en.conf to /home/house/weewx-data/skins/Seasons/lang/en.conf
merging cs.conf to /home/house/weewx-data/skins/Seasons/lang/cz.conf
merging no.conf to /home/house/weewx-data/skins/Seasons/lang/no.conf
processing skin SmartphoneReport
processing skin MobileReport
processing skin StandardReport
merging nl.conf to /home/house/weewx-data/skins/Standard/lang/nl.conf
merging de.conf to /home/house/weewx-data/skins/Standard/lang/de.conf
merging fr.conf to /home/house/weewx-data/skins/Standard/lang/fr.conf
merging en.conf to /home/house/weewx-data/skins/Standard/lang/en.conf
merging no.conf to /home/house/weewx-data/skins/Standard/lang/no.conf
processing skin Belchertown
merging de.conf to /home/house/weewx-data/skins/Belchertown/lang/de.conf
Saving installer file to /home/house/weewx-data/bin/user/installer/Skyfield almanac
Saved copy of configuration as /home/house/weewx-data/weewx.conf.20260405174622
Finished installing extension Skyfield almanac from /home/house/Downloads/Weewx/Extensions/weewx-skyfield-almanac-master-April-4.zip


On Apr 5, 2026, at 16:01, Karen K <kk44...@gmail.com> wrote:

It looks like a character set issue. You may try to replace the copyright symbol by &#169;.


--
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+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/60786c86-ae44-4593-afc8-e6aa41088dc0n%40googlegroups.com.

Vince Skahan

unread,
Apr 5, 2026, 9:32:07 PM (6 days ago) Apr 5
to weewx-user
possibly different, but I tried the same in debian13 and see:

2026-04-05T18:30:16.703277-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/Seasons/celestial.html.tmpl failed with exception '<class 'ValueError'>'
2026-04-05T18:30:16.703483-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/Seasons/celestial.html.tmpl
2026-04-05T18:30:16.703901-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: **** Reason: it is not useful to call .altaz() on an astrometric position; try calling .apparent() first to get an apparent position
2026-04-05T18:30:16.712709-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
2026-04-05T18:30:16.712820-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 334, in generate
2026-04-05T18:30:16.712864-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
2026-04-05T18:30:16.712918-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_Seasons_celestial_html_tmpl.py", line 180, in respond
2026-04-05T18:30:16.712974-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1712, in _handleCheetahInclude
2026-04-05T18:30:16.713035-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****      self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
2026-04-05T18:30:16.713078-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
2026-04-05T18:30:16.713119-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_Seasons_celestial_inc.py", line 415, in respond
2026-04-05T18:30:16.713160-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****    File "/etc/weewx/bin/user/skyfieldalmanac.py", line 1046, in visible_change
2026-04-05T18:30:16.713204-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****      today_visible = self.visible
2026-04-05T18:30:16.713247-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****                      ^^^^^^^^^^^^
2026-04-05T18:30:16.713291-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****    File "/etc/weewx/bin/user/skyfieldalmanac.py", line 1031, in visible
2026-04-05T18:30:16.713335-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****      alt, _, _ = observer.at(timestamp_to_skyfield_time(0.5*(timespan[0]+timespan[1]))).observe(body).altaz()
2026-04-05T18:30:16.713376-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
2026-04-05T18:30:16.713417-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/skyfield/positionlib.py", line 719, in altaz
2026-04-05T18:30:16.713458-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****      raise ValueError(
2026-04-05T18:30:16.713499-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****      ...<2 lines>...
2026-04-05T18:30:16.713541-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****      )
2026-04-05T18:30:16.713584-07:00 weewx-dpkg weewxd[6902]: ERROR weewx.cheetahgenerator: ****  ValueError: it is not useful to call .altaz() on an astrometric position; try calling .apparent() first to get an apparent position


I did not change anything in weewx.conf after installing the packages and two extensions....

vagrant@weewx-dpkg:/var/log/weewx$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

vagrant@weewx-dpkg:/var/log/weewx$ weectl extension list
Using configuration file /etc/weewx/weewx.conf
Extension Name    Version   Description

Skyfield almanac  0.6       almanac extension using Skyfield mdule
Skymap almanac    0.6       almanac extension using Skyfield mdule

Karen K

unread,
Apr 6, 2026, 1:43:56 AM (6 days ago) Apr 6
to weewx-user
weather list schrieb am Sonntag, 5. April 2026 um 23:53:53 UTC+2: 
  File "/home/house/weewx-data/bin/user/skymapalmanac.py", line 2093, in __init__
    alm_conf_dict['Texts'] = self.process_language(config_dict, alm_conf_dict.get('additional_localization_sources',['internal','Seasons']))
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Please, try adding additional_localization_sources = , in weewx.conf in section [Almanac], sub-section [[Skymap]]. Note the comma at the end.
 
Additionally note, that you can use at maximum version 0.5 of those almanac extensions together with WeeWX 5.2. For version 0.6 you need WeeWX 5.3. You can download version 0.5 in Github, if you click "Releases" on the right side of the page.

And. When installing Skyfield I noticed this, which I don't recall seeing before:

weewx-venv) house@ubuntu-gnu-linux-24-04-3:~$ weectl extension install /home/house/Downloads/Weewx/Extensions/weewx-skyfield-almanac-master-April-4.zip -y
Using configuration file /home/house/weewx-data/weewx.conf
Extracting from zip archive /home/house/Downloads/Weewx/Extensions/weewx-skyfield-almanac-master-April-4.zip
processing skin SeasonsReport
merging es.conf to /home/house/weewx-data/skins/Seasons/lang/es.conf [...]
 That's correct.

Karen K

unread,
Apr 6, 2026, 1:51:31 AM (6 days ago) Apr 6
to weewx-user
Thank you for bringing that up. I will fix it.


Vince Skahan schrieb am Montag, 6. April 2026 um 03:32:07 UTC+2:
possibly different, but I tried the same in debian13 and see:

weather list

unread,
Apr 6, 2026, 12:01:24 PM (5 days ago) Apr 6
to weewx...@googlegroups.com
Karen,

Weewx 5.2

Extension Name    Version   Description
Belchertown       1.7beta2-new-belchertownA clean modern skin with real time streaming updates and interactive charts. Modeled after BelchertownWeather.com
Skyfield almanac  0.5       almanac extension using Skyfield mdule
Skymap almanac    0.5       almanac extension using Skyfield mdule
forecast          4.0       Generate and display weather and tide forecasts.
purple            4.0.3     Record air quality via purple-proxy service.
purpleair         0.4       Collect Purple Air air quality data.
weatherflowudp    1.10.2    Capture data from WeatherFlow Bridge via UDP broadcast packets


Tried that:

2026-04-06T11:56:09.741234-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: Evaluation of template /home/house/weewx-data/skins/Belchertown/skymap/index.html.tmpl failed with exception '<class 'KeyError'>'
2026-04-06T11:56:09.741420-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: **** Ignoring template /home/house/weewx-data/skins/Belchertown/skymap/index.html.tmpl
2026-04-06T11:56:09.741545-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: **** Reason: '©'
2026-04-06T11:56:09.743280-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
2026-04-06T11:56:09.743335-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: ****    File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/cheetahgenerator.py", line 334, in generate
2026-04-06T11:56:09.743353-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
2026-04-06T11:56:09.743369-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: ****                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-04-06T11:56:09.743392-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: ****    File "cheetah__home_house_weewx_data_skins_Belchertown_skymap_index_html_tmpl_1775490969_7394633_82812.py", line 122, in respond
2026-04-06T11:56:09.743427-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: ****    File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/almanac.py", line 292, in __getattr__
2026-04-06T11:56:09.743459-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: ****      return almanac.get_almanac_data(self, attr)
2026-04-06T11:56:09.743488-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: ****             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-04-06T11:56:09.743517-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: ****    File "/home/house/weewx-data/bin/user/skymapalmanac.py", line 148, in get_almanac_data
2026-04-06T11:56:09.743543-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: ****      return SkymapBinder(self.config_dict, self.station_location, almanac_obj, self.get_labels(almanac_obj))
2026-04-06T11:56:09.743569-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: ****             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-04-06T11:56:09.743587-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: ****    File "/home/house/weewx-data/bin/user/skymapalmanac.py", line 205, in __init__
2026-04-06T11:56:09.743621-04:00 ubuntu-gnu-linux-24-04-3 weewxd[8311]: ERROR weewx.cheetahgenerator: ****      self.credits = '%s %s' % (labels['&#169;'],station_location)


On Apr 5, 2026, at 16:01, Karen K <kk44...@gmail.com> wrote:

It looks like a character set issue. You may try to replace the copyright symbol by &#169;.


Message has been deleted

Karen K

unread,
Apr 6, 2026, 12:48:11 PM (5 days ago) Apr 6
to weewx-user
Did you search the complete file and replaced all occurrences of the copyright symbol by &#169;?

Another idea: Replace labels['&#169;'] by labels.get('&#169;','').

weather list

unread,
Apr 7, 2026, 12:29:59 PM (4 days ago) Apr 7
to weewx...@googlegroups.com
Karen,

I did.

On Apr 6, 2026, at 12:44, Karen K <kk44...@gmail.com> wrote:

Did you search the complete file and replaced all occurrences of the copyright symbol by &#169;?

weather list schrieb am Montag, 6. April 2026 um 18:01:24 UTC+2:

weather list

unread,
Apr 7, 2026, 12:30:18 PM (4 days ago) Apr 7
to weewx...@googlegroups.com

weather list

unread,
Apr 7, 2026, 12:36:54 PM (4 days ago) Apr 7
to weewx...@googlegroups.com
Done.

Now:

Traceback (most recent call last):
  File "/home/house/weewx-venv/bin/weewxd", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/house/weewx-venv/lib/python3.12/site-packages/weewxd.py", line 121, in main
    engine = weewx.engine.StdEngine(config_dict)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/engine.py", line 89, in __init__
    self.loadServices(config_dict)
  File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/engine.py", line 157, in loadServices
    obj = weeutil.weeutil.get_object(svc)(self, config_dict)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/house/weewx-venv/lib/python3.12/site-packages/weeutil/weeutil.py", line 1404, in get_object
    module = importlib.import_module(module_name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 991, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1129, in get_code
  File "<frozen importlib._bootstrap_external>", line 1059, in source_to_code
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/home/house/weewx-data/bin/user/skymapalmanac.py", line 2016
    conf = {'&#169;','TZ':dict()}
                         ^
SyntaxError: invalid syntax


On Apr 6, 2026, at 12:48, Karen K <kk44...@gmail.com> wrote:

Karen K

unread,
Apr 7, 2026, 2:09:41 PM (4 days ago) Apr 7
to weewx-user
weather list schrieb am Dienstag, 7. April 2026 um 18:36:54 UTC+2:
    conf = {'&#169;','TZ':dict()}


Sorry, there is something missing: conf = {'&#169;':'&#169;','TZ':dict()} 

weather list

unread,
Apr 7, 2026, 10:26:08 PM (4 days ago) Apr 7
to weewx...@googlegroups.com
That did it, thank you Karen.

--
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+...@googlegroups.com.

weather list

unread,
Apr 7, 2026, 10:29:36 PM (4 days ago) Apr 7
to weewx...@googlegroups.com
That worked, thanks.

Now I have this:

I feel as if I have misconfigured something somewhere.

2026-04-07T22:16:56.039660-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR user.skymapalmanac: cannot create sky map: KeyError - 'TZ'
2026-04-07T22:16:56.039906-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: Evaluation of template /home/house/weewx-data/skins/Belchertown/skymap/index.html.tmpl failed with exception '<class 'KeyError'>'
2026-04-07T22:16:56.039992-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: **** Ignoring template /home/house/weewx-data/skins/Belchertown/skymap/index.html.tmpl
2026-04-07T22:16:56.040104-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: **** Reason: 'TZ'
2026-04-07T22:16:56.041067-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
2026-04-07T22:16:56.041157-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****    File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/cheetahgenerator.py", line 334, in generate
2026-04-07T22:16:56.041232-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
2026-04-07T22:16:56.041292-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-04-07T22:16:56.041348-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****    File "_home_house_weewx_data_skins_Belchertown_skymap_index_html_tmpl.py", line 123, in respond
2026-04-07T22:16:56.041409-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****    File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/cheetahgenerator.py", line 803, in filter
2026-04-07T22:16:56.041470-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****      filtered = str(val)
2026-04-07T22:16:56.041528-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****                 ^^^^^^^^
2026-04-07T22:16:56.041583-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****    File "/home/house/weewx-data/bin/user/skymapalmanac.py", line 279, in __str__
2026-04-07T22:16:56.041643-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****      return self.skymap(self.almanac_obj)
2026-04-07T22:16:56.041709-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-04-07T22:16:56.041786-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****    File "/home/house/weewx-data/bin/user/skymapalmanac.py", line 886, in skymap
2026-04-07T22:16:56.041870-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****      s.append('<text x="97" y="-93" font-size="5" fill="currentColor" text-anchor="end">%s</text>\n' % self.labels['TZ'].get('name(LAST)','sidereal time').capitalize())
2026-04-07T22:16:56.041969-04:00 ubuntu-gnu-linux-24-04-3 weewxd[303674]: ERROR weewx.cheetahgenerator: ****                                                                                                        ~~~~~~~~~~~^^^^^^


On Apr 7, 2026, at 14:09, Karen K <kk44...@gmail.com> wrote:

--
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+...@googlegroups.com.

Karen K

unread,
Apr 9, 2026, 9:04:11 AM (2 days ago) Apr 9
to weewx-user
Look at the language file of your skin. There is a section [Almanac]. There should be a sub-section [[TZ]]. Is it there?

If you really do not want to move to WeeWX 5.3 and almanac extensions 0.6 (which would it make easier for me to understand what happens), then you could try to add labels.update({'TZ':dict()}) before line 145 in version 0.5.

weather list

unread,
Apr 9, 2026, 4:13:01 PM (2 days ago) Apr 9
to weewx...@googlegroups.com
Karen,

Took your advice and upgraded (painlessly) to WeeWx 5.3.1 and the almanacs to v .6

I think all is well so far.

With thanks,

Reply all
Reply to author
Forward
0 new messages