Critical error

87 views
Skip to first unread message

Mark Fraser

unread,
Jun 20, 2021, 12:17:14 PM6/20/21
to weewx-user
Encountered this error this afternoon, the only extension I had installed previous to this was forecast.

This is on a Raspberry Pi running Raspbian Buster. Weewx getting weather data using weewx-sdr.

Jun 20 15:25:32 weathercam weewx[3515] INFO weewx.engine: Main loop exiting. Shutting engine down.
Jun 20 15:25:32 weathercam weewx[3515] INFO weewx.engine: Shutting down StdReport thread
Jun 20 15:25:32 weathercam weewx[3515] INFO user.sdr: shutdown process rtl_433 -M utc -F json
Jun 20 15:25:42 weathercam weewx[3515] INFO user.sdr: timed out waiting for stdout-thread
Jun 20 15:25:52 weathercam weewx[3515] INFO user.sdr: timed out waiting for stderr-thread
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__: Caught unrecoverable exception:
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****  '>' not supported between instances of 'float' and 'NoneType'
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****  Traceback (most recent call last):
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 214, in run
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****      self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet))
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****      callback(event)
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 624, in check_loop
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****      raise BreakLoop
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****  weewx.engine.BreakLoop
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****   
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****  During handling of the above exception, another exception occurred:
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****   
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****  Traceback (most recent call last):
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 157, in main
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****      engine.run()
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 221, in run
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****      self.dispatchEvent(weewx.Event(weewx.POST_LOOP))
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****      callback(event)
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 634, in post_loop
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****      self._software_catchup()
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 707, in _software_catchup
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****      origin='software'))
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****      callback(event)
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****    File "/usr/share/weewx/user/forecast.py", line 1212, in update_forecast
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****      elif time.time() - self.interval > self.last_ts:
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****  TypeError: '>' not supported between instances of 'float' and 'NoneType'
Jun 20 15:30:18 weathercam weewx[3515] CRITICAL __main__:     ****  Exiting.
Jun 20 15:30:18 weathercam systemd[1]: weewx.service: Main process exited, code=exited, status=1/FAILURE
Jun 20 15:30:18 weathercam systemd[1]: weewx.service: Failed with result 'exit-code'.

John Kline

unread,
Jun 20, 2021, 1:18:07 PM6/20/21
to weewx...@googlegroups.com
I assume you are running Python 3 (from the error).

What version of forecast are you running?  Exactly where did you get it from?

On Jun 20, 2021, at 9:17 AM, Mark Fraser <mfr...@gmail.com> wrote:


--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7078adcc-8e62-4239-ac43-f794c7392d60n%40googlegroups.com.

Mark Fraser

unread,
Jun 20, 2021, 1:55:57 PM6/20/21
to weewx...@googlegroups.com
Yes, I'm running Python 3. I installed it be following the instructions
here https://github.com/weewx/weewx/wiki/forecasting.

John Kline

unread,
Jun 20, 2021, 2:17:42 PM6/20/21
to weewx...@googlegroups.com
Unfortunately, that version of forecast is not compatible with Python 3. I ported forecast to Python 3 and many of us have been using if successfully for quite some time.

Get it with this:

wget -O weewx-forecast.zip https://github.com/chaunceygardiner/weewx-forecast/archive/master.zip

Cheers,
John

> On Jun 20, 2021, at 10:55 AM, Mark Fraser <mfr...@gmail.com> wrote:
> --
> 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 weewx-user+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/456e961e-53b6-34f8-867b-d0a6af6062ba%40gmail.com.

Mark Fraser

unread,
Jun 21, 2021, 7:09:40 AM6/21/21
to weewx...@googlegroups.com
On 20/06/2021 19:17, John Kline wrote:
> Unfortunately, that version of forecast is not compatible with Python 3. I ported forecast to Python 3 and many of us have been using if successfully for quite some time.
>
> Get it with this:
>
> wget -O weewx-forecast.zip https://github.com/chaunceygardiner/weewx-forecast/archive/master.zip
>
> Cheers,
> John

Thanks for that, I thought I saw the green tick next to the forecast
link and therefore compatible with Python 3. I must've been looking at
the line above.
Reply all
Reply to author
Forward
0 new messages