Unlike most languages, Python depends on indenting to separate blocks. It looks like the author got the indenting wrong on the Australian module. That's not the only error in the file. I doubt it ever worked!
On Fri, Dec 24, 2021 at 3:53 PM Tim Tuck <[email protected]> wrote: > Hi all, > > My system ran for nearly 24 hours before crashing again with this error. > > > Dec 25 07:40:11 metoffice weewx[102411] INFO weewx.engine: StdConvert > target unit is 0x1 > Dec 25 07:40:12 metoffice weewx[102411] INFO user.gw1000: Gw1000Collector > thread has been terminated > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: Caught > unrecoverable exception: > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > unexpected indent (au.py, line 26) > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > Traceback (most recent call last): > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > File "/usr/share/weewx/weewxd", line 151, in main > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > engine = weewx.engine.StdEngine(config_dict) > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/engine.py", line 93, in __init__ > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > self.loadServices(config_dict) > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > obj = weeutil.weeutil.get_object(svc)(self, config_dict) > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > File "/usr/share/weewx/user/aqi/service.py", line 101, in __init__ > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > __import__(standard_path) > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > File "/usr/share/weewx/user/aqi/au.py", line 26 > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > self.calculators[calculators.CO] = calculators.LinearScale( > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** ^ > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > IndentationError: unexpected indent > Dec 25 07:40:12 metoffice weewx[102411] CRITICAL __main__: **** > Exiting. > > System.... > > Dec 25 10:45:55 metoffice weewx[107794]: * Starting weewx weather system > weewx > Dec 25 10:45:55 metoffice weewx[107806] INFO __main__: Initializing weewx > version 4.5.1 > Dec 25 10:45:55 metoffice weewx[107806] INFO __main__: Using Python 3.8.10 > (default, Nov 26 2021, 20:14:08) #012[GCC 9.3.0] > Dec 25 10:45:55 metoffice weewx[107806] INFO __main__: Platform > Linux-5.4.0-91-generic-x86_64-with-glibc2.29 > Dec 25 10:45:55 metoffice weewx[107806] INFO __main__: Locale is 'C.UTF-8' > Dec 25 10:45:55 metoffice weewx[107806] INFO __main__: PID file is > /var/run/weewx.pid > > Extensions... > > timt@metoffice:~$ sudo wee_extension --list > Extension Name Version Description > SteelSeries 2.7.6 A weeWX extension for the SteelSeries Weather > Gauges. > Belchertown 1.2 A clean modern skin with real time streaming > updates and interactive charts. Modeled after BelchertownWeather.com > windy 0.7 Upload weather data to Windy. > GW1000 0.4.1 WeeWX driver for GW1000/GW1100 WiFi gateways. > Rtgd 0.5.0 WeeWX support for near realtime updating of > the SteelSeries Weather Gauges. > mqtt 0.23 Upload weather data to MQTT server. > aqi 1.4 Calculates air quality indexes. > timt@metoffice:~$ > > > Any help appreciated. > > thanks > > Tim > > > -- > 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/93535773-0ac6-1d36-f0b1-4d4d622835ed%40skybase.net > <https://groups.google.com/d/msgid/weewx-user/93535773-0ac6-1d36-f0b1-4d4d622835ed%40skybase.net?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/CAPq0zECD_nPtwfA_x8Jiht0R7Xto-MEZCEwFWu%3DQGqDBduOgvQ%40mail.gmail.com.
