There's a newer version with a fix. Search this group with the error message and you'll find it.
On Sun, Jun 14, 2020 at 7:41 PM Tony Deets <[email protected]> wrote: > I recently move weewx form a Pi 3 running Stretch with weewx using Python > 2.7 to a Pi 4 running Buster using Python 3.whatever. The new Pi 4 weewx > setup is almost exact copy of Pi 3 setup. The one difference is that when > the Forecast extension installed and enabled I get the following syslog > error: > > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: Caught > unrecoverable exception: > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** '>' > not supported between instances of 'float' and 'NoneType' > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > Traceback (most recent call last): > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/engine.py", line 195, in run > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet)) > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > callback(event) > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/engine.py", line 578, in check_loop > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > raise BreakLoop > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > weewx.engine.BreakLoop > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > During handling of the above exception, another exception occurred: > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > Traceback (most recent call last): > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > File "/usr/share/weewx/weewxd", line 154, in main > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > engine.run() > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/engine.py", line 202, in run > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > self.dispatchEvent(weewx.Event(weewx.POST_LOOP)) > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > callback(event) > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/engine.py", line 594, in post_loop > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > self._catchup(self.engine.console.genArchiveRecords) > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/engine.py", line 643, in _catchup > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > origin='hardware')) > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > callback(event) > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > File "/usr/share/weewx/user/forecast.py", line 1212, in update_forecast > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > elif time.time() - self.interval > self.last_ts: > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > TypeError: '>' not supported between instances of 'float' and 'NoneType' > Jun 14 07:55:18 raspberrypi weewx[11874] CRITICAL __main__: **** > Exiting. > > When the Forecast extension is uninstalled the problem disappears and > weewx executes without issue. > > I suspect that there might be a compatibility problem between the Forecast > extension and Python 3.7 but have no direct evidence that that is the case. > I am curious to know if any other users of the above are having this issue > and is their a known workaround for this problem? If not, I guess it will > require taking a look at the source and seeing how badly I can muck things > up... > > -- > 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/4feda774-b55a-4002-be2a-5a2358fa487do%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/4feda774-b55a-4002-be2a-5a2358fa487do%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Peter Quinn (415)794-2264 -- 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/CAA1SM23LMs8p%3DJ_ZmcrDB%3DxkUpDTv8RyUwKrXn%2B2btH-8yOAPw%40mail.gmail.com.
