Error on start up after upgrading RPi & Weewx

48 views
Skip to first unread message

John Matz

unread,
Jul 25, 2026, 10:09:12 AM (8 days ago) Jul 25
to weewx-user
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'.

Tom Keffer

unread,
Jul 25, 2026, 10:37:29 AM (8 days ago) Jul 25
to weewx...@googlegroups.com
Not a lot of information here, but it looks like you have an option under [[Wunderground]] in weewx.conf that should not be there. Something like

[StdRESTful]
  ...
  [[Wunderground]]
    enable = true
    station = KMDSOMETHING
    password = MYPASSWORD 
    fields = something...

The highlighted option should not be there. There is no "fields" option for the Wunderground uploader.


--
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/73fa6e99-308c-4f02-b73d-aa5e8fdd1962n%40googlegroups.com.

John Matz

unread,
Jul 25, 2026, 1:20:23 PM (8 days ago) Jul 25
to weewx...@googlegroups.com
Tom,

Thanks.  That corrected this issue.  I generated that issue myself.  I had to upgrade last week and now have RPi Bookwork and WeeWX 5.4.0.  When looking at the system data in my browser, I noticed several differences from the older version.  The system was now showing graphs for UV and Radiation and Battery status (for batteries I do not have).  Also, the weekly, monthly and yearly data has not updated from the sqlite3 db I moved over from the previous install .  I set out to correct the first issue by adding the "fields" to limit the display to those I wanted to see and that is what crashed the system.  I am still working my way through restoring the historical graphs and data..  Thanks for your assistance.

John Matz    

Reply all
Reply to author
Forward
0 new messages