Ok, as far as I can tell the examples directory is not in the deb package 
so anyone using apt-get or dpkg will not have an examples directory. You 
can download the stats.py file directly from GitHub by typing the following 
from the command line on your weeWX machine:

$ wget https:
//raw.githubusercontent.com/weewx/weewx/master/examples/stats.py

That will download stats.py to the current directory, you can then copy it 
to the bin/user directory.

Gary

On Wednesday, 15 March 2017 19:54:00 UTC+10, gjr80 wrote:
>
> Hi Eelco and VM-83,
>
> I thought this had been answered but apparently not. WeeWX 3.7.0 saw the 
> examples moved out of the bin directory and the xsearch.py SLE example 
> was renamed stats.py. Similarly, the MyXSearch SLE was renamed MyStats 
> (the MyXSearch SLE, now MyStats,provides the $alltime and $seven_day 
> tags). Admittedly it was the 28th item in the change log included in the 
> release 
> post <https://groups.google.com/d/msg/weewx-user/RTLEf-8pZC8/_i7HmXsUAwAJ>
> :
>
> Moved examples out of bin directory.  Eliminated experimental directory.
> Reinforce the use of user directory, eliminate use of examples directory.
> Renamed xsearch.py to stats.py.
>
> To get things working again you will need to copy the file stats.py from 
> the examples directory to your bin/user directory (the examples directory 
> is now in /home/weewx for a setup.py install, not so sure about rpm or 
> deb packages though). Also, in skin.conf the line:
>
> search_list_extensions = examples.xsearch.MyXSearch
>
> will need to be changed to:
>
> search_list_extensions = user.stats.MyStats
>
> This should restore the $alltime and $seven_day tags.
>
> Gary
>
> On Wednesday, 15 March 2017 19:17:52 UTC+10, Eelco F wrote:
>>
>> I'm having the same issue, as I posted in a separate post. Sorry, I 
>> overlooked this thread.
>>
>> I have weewx running on ubuntu 16.04.2. I upgraded from 3.6.2 to 3.7.0. I 
>> must say I always performed a manual update until 3.6.2. Now I added the 
>> repository and upgraded by apt-get.
>>
>> after that, I got this:
>>
>> Mar 15 09:50:17 weerstation weewx[1446]: reportengine: Caught 
>> unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****  No module named 
>> examples.xsearch
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****  Traceback (most 
>> recent call last):
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****    File 
>> "/usr/share/weewx/weewx/reportengine.py", line 239, in run
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****      obj.start()
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****    File 
>> "/usr/share/weewx/weewx/reportengine.py", line 273, in start
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****      self.run()
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****    File 
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 154, in run
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****     
>>  self.initExtensions(gen_dict[section_name])
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****    File 
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 196, in initExtensions
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****      class_ = 
>> weeutil.weeutil._get_object(x)
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****    File 
>> "/usr/share/weewx/weeutil/weeutil.py", line 1132, in _get_object
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****      mod = 
>> __import__(module)
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****  ImportError: No 
>> module named examples.xsearch
>> Mar 15 09:50:17 weerstation weewx[1446]:         ****  Generator 
>> terminated
>> Mar 15 09:50:17 weerstation weewx[1446]: imagegenerator: Generated 11 
>> images for StandardReport in 0.13 seconds
>>
>>
>> In my skin .conf there is this reference:
>> search_list_extensions = examples.xsearch.MyXSearch
>> I also tried to comment this out, it breaks things even further, as was 
>> said by TS.
>>
>>
>>
>>
>> Op zondag 12 maart 2017 11:50:47 UTC+1 schreef Erwin Heger:
>>>
>>> It won't solve itself by posting  several times ... 
>>>
>>> First answer the questions of matthew, afterwards we know a bit more and 
>>> can give better advise. 
>>>
>>> Erwin 
>>>
>>> > Am 12.03.2017 um 11:40 schrieb VM_83 <[email protected]>: 
>>> > 
>>> > First i made an update from V.3.6.2 to v.3.7.0 
>>> > 
>>> the skin cannot find the 'alltime' search list extension.  cannot say 
>>> how to fix it without knowing more about your configuration. 
>>>
>>> how did you do the upgrade?  what version of weewx were you running 
>>> before? 
>>>
>>> what's in the skin.conf for sofaskin? 
>>>
>>> what's in your weewx configuration file? 
>>>
>>

-- 
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.

Reply via email to