TypeError: AmbientLoopThread.__init__() got an unexpected keyword argument 'fields'
The only line in WeeWx.conf is the "Fields" for data to Wunderground. Indent and spelling look correct. The error references AmbientLoopThread and seems to point back to the one line in the conf file for Wunderground.
sudo systemctl status weewx
× weewx.service - WeeWX
Loaded: loaded (/lib/systemd/system/weewx.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sat 2026-07-25 09:49:37 EDT; 2s ago
Duration: 1.434s
Docs:
https://weewx.com/docs Process: 11649 ExecStart=weewxd /etc/weewx/weewx.conf (code=exited, status=1/FAILURE)
Main PID: 11649 (code=exited, status=1/FAILURE)
CPU: 855ms
Jul 25 09:49:36 RPi-3B-Bookworm-07-26 weewxd[11649]: self.loadServices(config_dict)
Jul 25 09:49:36 RPi-3B-Bookworm-07-26 weewxd[11649]: File "/usr/share/weewx/weewx/engine.py", line 157, in loadServices
Jul 25 09:49:36 RPi-3B-Bookworm-07-26 weewxd[11649]: obj = weeutil.weeutil.get_object(svc)(self, config_dict)
Jul 25 09:49:36 RPi-3B-Bookworm-07-26 weewxd[11649]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 25 09:49:36 RPi-3B-Bookworm-07-26 weewxd[11649]: File "/usr/share/weewx/weewx/restx.py", line 663, in __init__
Jul 25 09:49:36 RPi-3B-Bookworm-07-26 weewxd[11649]: self.loop_thread = AmbientLoopThread(
Jul 25 09:49:36 RPi-3B-Bookworm-07-26 weewxd[11649]: ^^^^^^^^^^^^^^^^^^
Jul 25 09:49:36 RPi-3B-Bookworm-07-26 weewxd[11649]: TypeError: AmbientLoopThread.__init__() got an unexpected keyword argument 'fields'
Jul 25 09:49:37 RPi-3B-Bookworm-07-26 systemd[1]: weewx.service: Main process exited, code=exited, status=1/FAILURE
Jul 25 09:49:37 RPi-3B-Bookworm-07-26 systemd[1]: weewx.service: Failed with result 'exit-code'.