Re: [weewx-user] 2.6 going to 3.8 and wee_extension

2018-02-04 Thread Glenn McKechnie
You're missing the "-- install" directive in both of those commands.

sudo /home/weewx/bin/wee_extension /home/myideas/weewx-cmon-0.16.tgz

should be...

sudo /home/weewx/bin/wee_extension --install /home/myideas/weewx-cmon-0.16.tgz

Ditto for weewx-forecast-3.2.19.tgz


http://www.weewx.com/docs/utilities.htm#wee_extension_utility


Cheers
 Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie


On 5 February 2018 at 02:56, vigilancewx  wrote:
> Hello I have been using weewx for a few years version 2.6 on a PI and it
> works fine (changing in and out of GMT causes the pi to play up but thats
> all)  no problems with the SD cards etc
> However i  decided to install the latest version 3.8 on a machine running
> Ubuntu 17
>
> I have modified my 2.6 quite extensively so doing a clean install and trying
> to migrate my mods over if possible
>
> i am unable to get wee_extension to install i have tried on the forecast
> extension and cmon
>
> i cant remember how to install the extensions from a few years ago  and
> using wee_extension i get the following errors
>
> Thanks for any help
>
> pi@picomp:/home/myideas$ dir
> abcweewx.tgz  home   weewx-forecast-3.2.19.tgz
> abweewx.tgz   weewx-cmon-0.16.tgz  weewx-owfs-0.21.tgz
> pi@picomp:/home/myideas$ sudo /home/weewx/bin/wee_extension
> /home/myideas/weewx-cmon-0.16.tgz
> Traceback (most recent call last):
>   File "/home/weewx/bin/wee_extension", line 83, in 
> main()
>   File "/home/weewx/bin/wee_extension", line 62, in main
> config_path, config_dict = weecfg.read_config(options.config, _args)
>   File "/home/weewx/bin/weecfg/__init__.py", line 223, in read_config
> config_dict = configobj.ConfigObj(config_path, file_error=True)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in
> __init__
> self._load(infile, configspec)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
> raise error
> configobj.ConfigObjError: Parsing failed with several errors.
> First error at line 1.
> pi@picomp:/home/myideas$ sudo /home/weewx/bin/wee_extension
> /home/myideas/weewx-forecast-3.2.19.tgz
> Traceback (most recent call last):
>   File "/home/weewx/bin/wee_extension", line 83, in 
> main()
>   File "/home/weewx/bin/wee_extension", line 62, in main
> config_path, config_dict = weecfg.read_config(options.config, _args)
>   File "/home/weewx/bin/weecfg/__init__.py", line 223, in read_config
> config_dict = configobj.ConfigObj(config_path, file_error=True)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in
> __init__
> self._load(infile, configspec)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
> raise error
> configobj.ConfigObjError: Parsing failed with several errors.
> First error at line 3.
> pi@picomp:/home/myideas$
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] 2.6 going to 3.8 and wee_extension

2018-02-04 Thread gjr80
Hi,

One of the first things wee_extension does is find weewx.conf and read it's 
contents with configobj (a config file parser). wee_extension has found a 
config file but configobj is finding errors in the file. Odd that it is finding 
errors in different places for (you would expect) the same file. I assume you 
have 3.8.0 running without error? The normal approach is to get weeWX running 
without error before adding extensions/further customising. A couple of things 
you can try if weeWX is otherwise running without error:

- Check weewx.conf, is there anything obviously wrong in the first few lines. 
You upgraded from 2.6 but did you do a clean install or an upgrade, assume a 
clean install if a different machine/OS.  If you did a clean 3.8.0 install 
weewx.conf should be good. You didn't copy weewx.conf from your old system did 
you? That could cause problems.

- Try explicitly specifying weewx.conf when running wee_extension using the 
--config option. Specify the full path to weewx.conf (take note of what weeWX 
says in its startup log to ensure you and weeWX agree on where weewx.conf is. 
If you don't use the --config option wee_extension looks for weewx.conf in the 
usual places, perhaps it has picked up an old or invalid file that is not your 
current weewx.cnf, could happen if if multiple installs have occurred on the 
machine using different install methods.

If you have no luck do a wee_debug run 
(http://weewx.com/docs/utilities.htm#wee_debug_utility) and post the output 
checking for any sensitive info first, wee_does a good job at removing 
sensitive info but it's not perfect. There is a chance wee_debug will have the 
same problem as wee_extension, in which case just post a copy of weewx.conf but 
you will need to manually remove sensitive info. Finally, what type of 3.8.0 
install did you do on the new machine?

Gary

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] 2.6 going to 3.8 and wee_extension

2018-02-04 Thread vigilancewx
Hello I have been using weewx for a few years version 2.6 on a PI and it 
works fine (changing in and out of GMT causes the pi to play up but thats 
all)  no problems with the SD cards etc
However i  decided to install the latest version 3.8 on a machine running 
Ubuntu 17

I have modified my 2.6 quite extensively so doing a clean install and 
trying to migrate my mods over if possible

i am unable to get wee_extension to install i have tried on the forecast 
extension and cmon

i cant remember how to install the extensions from a few years ago  and 
using wee_extension i get the following errors

Thanks for any help

pi@picomp:/home/myideas$ dir
abcweewx.tgz  home   weewx-forecast-3.2.19.tgz
abweewx.tgz   weewx-cmon-0.16.tgz  weewx-owfs-0.21.tgz
pi@picomp:/home/myideas$ sudo /home/weewx/bin/wee_extension 
/home/myideas/weewx-cmon-0.16.tgz
Traceback (most recent call last):
  File "/home/weewx/bin/wee_extension", line 83, in 
main()
  File "/home/weewx/bin/wee_extension", line 62, in main
config_path, config_dict = weecfg.read_config(options.config, _args)
  File "/home/weewx/bin/weecfg/__init__.py", line 223, in read_config
config_dict = configobj.ConfigObj(config_path, file_error=True)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in 
__init__
self._load(infile, configspec)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
raise error
configobj.ConfigObjError: Parsing failed with several errors.
First error at line 1.
pi@picomp:/home/myideas$ sudo /home/weewx/bin/wee_extension 
/home/myideas/weewx-forecast-3.2.19.tgz
Traceback (most recent call last):
  File "/home/weewx/bin/wee_extension", line 83, in 
main()
  File "/home/weewx/bin/wee_extension", line 62, in main
config_path, config_dict = weecfg.read_config(options.config, _args)
  File "/home/weewx/bin/weecfg/__init__.py", line 223, in read_config
config_dict = configobj.ConfigObj(config_path, file_error=True)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in 
__init__
self._load(infile, configspec)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
raise error
configobj.ConfigObjError: Parsing failed with several errors.
First error at line 3.
pi@picomp:/home/myideas$ 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.