Belchertown-New error: ValueError: not enough values to unpack (expected 2, got 1)

41 views
Skip to first unread message

Dan Hinckley

unread,
Mar 6, 2026, 3:25:02 PM (3 days ago) Mar 6
to weewx...@googlegroups.com
I've been trying to work out what is causing this error. I have the Belchertown-New skin installed. When I disable it, the error disappears; re-enable, it re-appears.

The generator generates a few B'town files and folders, but no index.html

Other extensions installed: (Even when I remove all the almanacs the error condition is the same)
Extension Name Version Description
Belchertown 1.3.1 A 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

WeeWx: 5.2
Venv setup using pip install
Mac mini M1
WeeWx installed in a Parallels Ubuntu VM

<log>
Startup:

2026-03-06T15:19:59.192352-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: Initializing weewxd version 5.2.0
2026-03-06T15:19:59.193125-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: Command line: /home/house/weewx-venv/bin/weewxd
2026-03-06T15:19:59.194061-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: Using Python: 3.12.3 (main, Jan 22 2026, 20:57:42) [GCC 13.3.0]
2026-03-06T15:19:59.194207-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: Located at: /home/house/weewx-venv/bin/python3
2026-03-06T15:19:59.196918-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: Platform: Linux-6.17.0-14-generic-aarch64-with-glibc2.39
2026-03-06T15:19:59.197184-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: Locale: 'en_US.UTF-8'
2026-03-06T15:19:59.197319-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: Entry path: /home/house/weewx-venv/bin/weewxd
2026-03-06T15:19:59.197448-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: WEEWX_ROOT: /home/house/weewx-data
2026-03-06T15:19:59.197559-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: Config file: /home/house/weewx-data/weewx.conf
2026-03-06T15:19:59.197676-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: User module: /home/house/weewx-data/bin/user
2026-03-06T15:19:59.197817-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: Debug: 1
2026-03-06T15:19:59.198109-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: User: house
2026-03-06T15:19:59.198294-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: Group: house
2026-03-06T15:19:59.198440-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewxd: Groups: adm cdrom sudo dip plugdev users lpadmin house
2026-03-06T15:19:59.198593-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: DEBUG weewxd: loop_on_init: True
2026-03-06T15:19:59.198784-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: DEBUG weewxd: Initializing engine
2026-03-06T15:19:59.198947-05:00 ubuntu-gnu-linux-24-04-3 weewxd[517060]: INFO weewx.engine: Loading station type WeatherFlowUDP (user.weatherflowudp)
-------------------
Error report:

2026-03-06T15:11:08.670669-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: DEBUG weewx.reportengine: Running report 'Belchertown'
2026-03-06T15:11:08.673811-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: DEBUG weewx.reportengine: Found configuration file /home/house/weewx-data/skins/Belchertown/skin.conf for report 'Belchertown'
2026-03-06T15:11:08.675187-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: DEBUG weewx.reportengine: Cannot read localization file /home/house/weewx-data/skins/Belchertown/lang/en.conf for report 'Belchertown': Config file not found: "/home/house/weewx-data/skins/Belchertown/lang/en.conf".
2026-03-06T15:11:08.675278-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: DEBUG weewx.reportengine: **** Using defaults instead.
2026-03-06T15:11:08.676020-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: DEBUG weewx.reportengine: Unable to set locale 'en': unsupported locale setting. Using default.
2026-03-06T15:11:08.676139-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: DEBUG weewx.reportengine: Running generators for report 'Belchertown' in directory '/home/house/weewx-data/skins/Belchertown' with locale 'en_US.UTF-8'
2026-03-06T15:11:08.676984-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: DEBUG weewx.cheetahgenerator: Using search list ['user.belchertown.getData', 'user.forecast.ForecastVariables', 'user', 'weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.DisplayOptions', 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 'weewx.cheetahgenerator.JSONHelpers', 'weewx.cheetahgenerator.PlotInfo', 'weewx.cheetahgenerator.SkinInfo', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
2026-03-06T15:11:08.677154-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
2026-03-06T15:11:08.677266-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** not enough values to unpack (expected 2, got 1)
2026-03-06T15:11:08.677585-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** Traceback (most recent call last):
2026-03-06T15:11:08.677661-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/reportengine.py", line 248, in run
2026-03-06T15:11:08.677775-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** obj.start()
2026-03-06T15:11:08.677910-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/reportengine.py", line 465, in start
2026-03-06T15:11:08.677994-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** self.run()
2026-03-06T15:11:08.678122-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/cheetahgenerator.py", line 163, in run
2026-03-06T15:11:08.678225-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** self.init_extensions(gen_dict[section_name])
2026-03-06T15:11:08.678332-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** File "/home/house/weewx-venv/lib/python3.12/site-packages/weewx/cheetahgenerator.py", line 194, in init_extensions
2026-03-06T15:11:08.678866-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** klass = weeutil.weeutil.get_object(x)
2026-03-06T15:11:08.678943-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-03-06T15:11:08.678983-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** File "/home/house/weewx-venv/lib/python3.12/site-packages/weeutil/weeutil.py", line 1403, in get_object
2026-03-06T15:11:08.679023-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** module_name, klass_name = module_class.rsplit('.', 1)
2026-03-06T15:11:08.679088-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** ^^^^^^^^^^^^^^^^^^^^^^^
2026-03-06T15:11:08.679140-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** ValueError: not enough values to unpack (expected 2, got 1)
2026-03-06T15:11:08.679195-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: ERROR weewx.reportengine: **** Generator terminated
2026-03-06T15:11:08.681225-05:00 ubuntu-gnu-linux-24-04-3 weewxd[491995]: INFO weewx.reportengine: Copied 8 files to /var/www/html/weewx/belchertown
</log>

Vince Skahan

unread,
Mar 6, 2026, 3:30:24 PM (3 days ago) Mar 6
to weewx-user
A google search for "module_name, klass_name = module_class.rsplit" pointed me to https://groups.google.com/g/weewx-user/c/0jcHujdKm_8

But it looks like you're running an old version.  Try updating to the current one.

weather list

unread,
Mar 6, 2026, 4:36:36 PM (3 days ago) Mar 6
to weewx...@googlegroups.com
Thanks Vince.

Yes, that was my original question here, and TK suggested:

Most likely the full name of a search list extension was not specified. With such a short snippet of the log, I can't tell you which one, but look in the various skin.conf files for option 'search_list_extensions'. Look them over carefully. The extension should include a class name. I'm betting that it's missing. For example, something like

search_list_extensions = user.seven_day

instead of

search_list_extensions = user.seven_day.SevenDay

-tk

Which I looked at, but no joy.

And there seem to be two repos of this "new" BTown skin, by two authors:


https://github.com/Boym323/weewx-belchertown-new (this one appears to be more recently maintained, and I'll try it; I was using the other one)

-- 
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/a2ef888b-bfbd-4915-849c-c3b0742566a3n%40googlegroups.com.

Vince Skahan

unread,
Mar 6, 2026, 5:02:45 PM (2 days ago) Mar 6
to weewx-user
Belchertown is unusual in that it adds its service via skin.conf rather than weewx.conf so you might look in both places.  Or uninstall it and reinstall it.
Reply all
Reply to author
Forward
0 new messages