problem with 4.1.1

64 views
Skip to first unread message

brisguy foo

unread,
Aug 2, 2020, 2:51:54 PM8/2/20
to weewx-user
I just installed version 4.1.1 so I could get access to the LOOP2 data. Although I inadvertently halted the process, it seems I was able to use apt-get install --reinstall successfully. After the install, it appeared to sun and  in fact updated all the records since I last ran the program two days ago. However when I restarted the daemon after updating weewx.conf, it stopped updating. When I tried running directly, I got the following errors:
File "/usr/share/weewx/weewxd", line 261, in <module>
    main()
  File "/usr/share/weewx/weewxd", line 125, in main
    config_path, config_dict = weecfg.read_config(options.config_path, list(args))
  File "/usr/share/weewx/weecfg/__init__.py", line 179, in read_config
    default_encoding='utf-8')
  File "/usr/lib/python3/dist-packages/configobj.py", line 1229, in __init__
    self._load(infile, configspec)
  File "/usr/lib/python3/dist-packages/configobj.py", line 1318, in _load
    raise error
configobj.DuplicateError: Duplicate keyword name at line 119.


Any ideas on how to fix this? Note: the reinstall occurred around 10:25 or so.
syslog
weewx.conf

vince

unread,
Aug 2, 2020, 3:04:12 PM8/2/20
to weewx-user
On Sunday, August 2, 2020 at 11:51:54 AM UTC-7, brisguy foo wrote:
configobj.DuplicateError: Duplicate keyword name at line 119.

Any ideas on how to fix this? 

I'd suggest you look at line 119 in weewx.conf and you'll notice you have a duplicate keyword line there. 

brisguy foo

unread,
Aug 2, 2020, 4:47:48 PM8/2/20
to weewx-user
That was it, thanks! I should have known that the problem was caused by weewx.conf but did not see any mention of that file in the error message and was not confident the error occurred the first time I used the modified file. Ran into a problem starting the daemon, but I am going to post that in a new thread.
Reply all
Reply to author
Forward
0 new messages