problem with wee extension

76 views
Skip to first unread message

angry tux

unread,
Feb 15, 2020, 10:37:41 AM2/15/20
to weewx-user
Hi,
I tried to install an extension (SFtp) but gor a failure messsage. as I understand the weewx.conf could not be found.
than I tried to plot the lists of installed extension and became the same.

as for a setup.py installation:

sudo /home/weewx/bin/wee_extension --list
Traceback (most recent call last):
  File "/home/weewx/bin/wee_extension", line 82, in <module>
    main()
  File "/home/weewx/bin/wee_extension", line 61, in main
    config_path, config_dict = weecfg.read_config(options.config, _args)
  File "/home/weewx/bin/weecfg/__init__.py", line 173, in read_config
    locations=locations, file_name=file_name)
  File "/home/weewx/bin/weecfg/__init__.py", line 145, in find_file
    (file_name, locations))
IOError: Unable to find file 'weewx.conf'. Tried directories ['../..', '/etc/weewx', '/home/weewx']


has somebody an idea whats going wrong?

Regards


vince

unread,
Feb 15, 2020, 12:31:26 PM2/15/20
to weewx-user
Start with seeing if somehow your weewx.conf actually got deleted somehow.

Is either /home/weewx/weewx.conf or /etc/weewx/weewx.conf actually present ?

For a setup.py install it should be the /home path...

 

angry tux

unread,
Feb 15, 2020, 1:31:45 PM2/15/20
to weewx-user
Hi,

thanks for taking care.
I have a dual installation done for SMA and WH1080, therefore the wee_conf is under /home/weewx/bin/.... same directory as the wee_extension

I did install some other extensions a year ago, but do not remember if I did anything different. Or could the last two updates of Weewx be responsible?

Best regards


Andrew Milner

unread,
Feb 15, 2020, 1:51:21 PM2/15/20
to weewx-user
did you try specifying the full path to your specific weewx.conf

eg
sudo /home/weewx/bin/wee_extension  --config=/home/weewx/bin/weewx.conf --list      or something like that anyway

vince

unread,
Feb 15, 2020, 2:21:08 PM2/15/20
to weewx-user

n Saturday, February 15, 2020 at 10:51:21 AM UTC-8, Andrew Milner wrote:
did you try specifying the full path to your specific weewx.conf

eg
sudo /home/weewx/bin/wee_extension  --config=/home/weewx/bin/weewx.conf --list      or something like that anyway

On Saturday, 15 February 2020 20:31:45 UTC+2, angry tux wrote:
Hi,

thanks for taking care.
I have a dual installation done for SMA and WH1080, therefore the wee_conf is under /home/weewx/bin/.... same directory as the wee_extension

Agree with Andrew.  If you have weewx.conf in an unusual place, you have to tell the utilities where to find it.
If you add "--config=/home/weewx/bin/weewx.conf" to your wee_extension command (as Andrew suggested), you should be ok.


angry tux

unread,
Feb 15, 2020, 2:38:20 PM2/15/20
to weewx-user
Thanks to all of you,

Solved it, 
the weewx.conf had been renamed to WH1080.conf. To install the extension I just renamed it back to weewx.conf and all went well.

Reply all
Reply to author
Forward
0 new messages