On Wed, 31 Aug 2016 22:31:59 -0700 (PDT)
gjr80 <[email protected]> wrote:
> My apologies, was up a mountain on my phone so necessarily brief.
>
> Short answer. My mistake, wee_import actually needs the latest
> version of wxservices.py from the weewx master branch on github. The
> easiest approach is to:
>
> - copy your existing wxservices.py to say wxservices_orig.py
> - use wget to download wxservcices.py from the weewx master branch:
>
> wget https:
> //raw.githubusercontent.com/weewx/weewx/master/bin/weewx/wxservices.py
>
> - copy the downloaded wxservices.py in place of the old version
> - undo any changes you made to wee_import
> - run wee_import as advised previously
>
> Long answer. To get wee_import to use the StdWXCalculate to calculate
> any missing derived obs we needed to make some changes to
> StdWXCalculate, hence the updated wxservices.py. The updated
> wxservices.py will be included in the next weewx release (assuming
> that will be 3.6.0) and when wee_import is released it will in fact
> have a check to ensure the installed weewx is at least 3.6.0. For
> development that check is turned off (there is no 3.6.0 at the
> moment) as what is in the master branch awaiting release is still
> coded as 3.5.0.
>
>
> Gary
>
I've got wxservices.py; wee_import.conf and wee_import today
trying to run wee_import I get
$ sudo ./wee_import --import-config=/etc/weewx/wee_import.conf --wunder
--dry-run --station=INSWBEEL2 --date=2009-03-20 Starting wee_import...
Traceback (most recent call last):
File "./wee_import", line 2272, in <module>
main()
File "./wee_import", line 608, in main
source_obj = Source.sourceFactory(options, args)
File "./wee_import", line 918, in sourceFactory
options)
File "./wee_import", line 1824, in __init__
options)
File "./wee_import", line 823, in __init__
self.wxcalculate = weewx.wxservices.WXCalculate(config_dict,
AttributeError: 'module' object has no attribute 'WXCalculate'
Can you advise what else I can do?
Liz
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.