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 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/27732597-e9f3-45c3-91a5-028d269c79c7n%40googlegroups.com.
