DB extension error

82 views
Skip to first unread message

Francesco Fasano

unread,
May 9, 2023, 9:59:29 AM5/9/23
to weewx-user
Good morning,
i am trying to update weewx db with wview_extended schema
but it returns the following error

sudo ./wee_database weewx.conf --reconfigure
Traceback (most recent call last):
  File "./wee_database", line 1168, in <module>
    main()
  File "./wee_database", line 187, in main
    config_path, config_dict = weecfg.read_config(options.config_path, args)
  File "/home/weewx/bin/weecfg/_init_.py", line 147, in read_config
    locations=locations, file_name=file_name)
  File "/home/weewx/bin/weecfg/_init_.py", line 117, in find_file
    raise IOError("%s is not a file" % file_path)
OSError: weewx.conf is not a file

weewx version 4.10.2

gjr80

unread,
May 9, 2023, 5:14:11 PM5/9/23
to weewx-user
From the command and output provided you are running wee_database from the /home/weewx/bin directory. Consequently wee_database is looking for weewx.conf in the same directory, and of course it is not found as weewx.conf is (normally) in /home/weewx. You need to specify the path to weewx.conf, eg:

$ sudo ./wee_database /home/weewx/weewx.conf --reconfigure

Gary

Francesco Fasano

unread,
May 10, 2023, 4:48:45 AM5/10/23
to weewx...@googlegroups.com
Thanks a lot it worked.

--
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 on the web visit https://groups.google.com/d/msgid/weewx-user/4fedc457-3f18-4467-bf3e-595d18590b5dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages