Hi Neville,

You may need to empty files in /var/lib/weewx/aussearch. Also make sure you 
have restarted weewx.

Cheers

Darryn

________________________________
From: [email protected] <[email protected]> on behalf of 
Neville Davis <[email protected]>
Sent: Sunday, May 30, 2021 8:43:18 AM
To: weewx-user <[email protected]>
Subject: [weewx-user] Re: Aussearch error accessing the BOM

Darryn

new aussearch.py installed (large no of changes since my feb install compared 
with BBedit)
Still not working...the json files are not being generated, the xml files are 
OK....in /var/lib/weewx/aussearch.

logs show

May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: Caught 
unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****  
maximum recursion depth exceeded
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****  
Traceback (most recent call last):
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
 File "/home/weewx/bin/weewx/reportengine.py", line 196, in run
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
   obj.start()
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
 File "/home/weewx/bin/weewx/reportengine.py", line 281, in start
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
   self.run()
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
 File "/home/weewx/bin/weewx/cheetahgenerator.py", line 149, in run
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
   self.initExtensions(gen_dict[section_name])
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
 File "/home/weewx/bin/weewx/cheetahgenerator.py", line 193, in initExtensions
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
   self.search_list_objs.append(class_(self))
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
 File "/home/weewx/bin/user/aussearch.py", line 213, in __init__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
   self.refresh_time = 
float(self.generator.skin_dict['AusSearch']['refresh_time'])
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
 File "/home/weewx/bin/user/aussearch.py", line 535, in __init__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
   (self.local_file_path, check_datetime))
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
 File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
   syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not exist: %s" %
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
 File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
   syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not exist: %s" %
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
 File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
   syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not exist: %s" %
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****   
 [Previous line repeated 491 more times]
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****  
RecursionError: maximum recursion depth exceeded
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:         ****  
Generator terminated

On Sunday, May 30, 2021 at 7:54:15 AM UTC+10 Neville Davis wrote:
 Yes happening to me as well… started on Thursday,,,my normal fix of getting 
the /var/lib/weewx/aussearch reloaded not working…I will check the repo
Thanks Darryn

On Saturday, May 29, 2021 at 10:05:50 PM UTC+10 Darryn Capes-Davis wrote:
Hi Susan,

See the GitHub repo for update aussearch.py. The code now behaves more like a 
browser with more headers and keep alive so not blocked by BOM.

Regards

Darryn

On Saturday, May 29, 2021 at 7:22:14 PM UTC+10 [email protected] wrote:
I have been using Aussearch for a while now but in the last few days I've been 
getting:

May 29 19:05:34 weather weewxd[8649]: weewx[8649] ERROR user.aussearch: 
aussearch: cannot download xml file 
http://www.bom.gov.au/fwo/IDZ00059.warnings_vic.xml: HTTP Error 403: Forbidden

That part is not so bad but I suspect that it is also leading to:


May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
Generate failed with exception '<class 'RecursionError'>'

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
**** Ignoring template /home/weewx/skins/Responsive/index.html.tmpl

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
**** Reason: maximum recursion depth exceeded in comparison

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****  Traceback (most recent call last):

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 322, in generate

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****      unicode_string = compiled_template.respond()

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****    File "_home_weewx_skins_Responsive_index_html_tmpl.py", line 1688, in 
respond

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****    File "_home_weewx_skins_Responsive_index_html_tmpl.py", line 681, in 
__errorCatcher88

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****    File "<string>", line 1, in <module>

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****    File "/home/weewx/bin/user/aussearch.py", line 381, in __getattr__

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****      if self.root_node is not None:

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****    File "/home/weewx/bin/user/aussearch.py", line 381, in __getattr__

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****      if self.root_node is not None:

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****    File "/home/weewx/bin/user/aussearch.py", line 381, in __getattr__

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****      if self.root_node is not None:

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****    [Previous line repeated 489 more times]

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****    File "/home/weewx/bin/user/aussearch.py", line 378, in __getattr__

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****      if child_or_attrib in ['__call__', 'has_key']:

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
****  RecursionError: maximum recursion depth exceeded in comparison


This is stopping the generation of the whole web page file.

I suspect that this is part of the on-going process by the BoM  to restrict 
access to various files but I could be wrong.

Before I try to take this out, is there any workaround?

Susan

--
You received this message because you are subscribed to a topic in the Google 
Groups "weewx-user" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/weewx-user/tsKLfRh0QvA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9eec16fe-633b-4ab5-9c17-22c85156ce0en%40googlegroups.com<https://groups.google.com/d/msgid/weewx-user/9eec16fe-633b-4ab5-9c17-22c85156ce0en%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/SY4P282MB092421477416BE1207403080AB219%40SY4P282MB0924.AUSP282.PROD.OUTLOOK.COM.

Reply via email to