You're not giving us a lot of information about your system.
In Python, a 'nan' ("not a number") is not returned by any function unless
one of the inputs to the function is a nan. That means one of your sensors
probably emitted a 'nan', either directly as a value (unlikely), or by
emitting a string with the literal characters 'nan'.
But, again, it's impossible to say anything without knowing more about your
system.
I will add one thing: V4.x includes a protection against ingesting nans.
Good reason to upgrade.
-tk
On Thu, Jun 25, 2020 at 1:53 PM 'Ron Walker' via weewx-user <
[email protected]> wrote:
> Hi All,
>
> I am using weewx 3.9.1 on a Raspberry pi. Up until yesterday, the system
> was running fine. I had stopped the pi yesterday to move it to a new
> location. Today when I attempted to start the program, I get the following
> error and then it quits. Any help pointing me in the right direction to a
> resolution would be greatly appreciated!
>
> Error output:
>
> Traceback (most recent call last):
> File "/usr/bin/weewxd", line 64, in <module>
> weewx.engine.main(options, args)
> File "/usr/share/weewx/weewx/engine.py", line 890, in main
> engine.run()
> File "/usr/share/weewx/weewx/engine.py", line 191, in run
> self.dispatchEvent(weewx.Event(weewx.NEW_LOOP_PACKET, packet=packet))
> File "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent
> callback(event)
> File "/usr/share/weewx/weewx/engine.py", line 546, in new_loop_packet
> self.accumulator.addRecord(event.packet, add_hilo=self.loop_hilo)
> File "/usr/share/weewx/weewx/accum.py", line 256, in addRecord
> func(self, record, obs_type, add_hilo, weight)
> File "/usr/share/weewx/weewx/accum.py", line 315, in add_value
> self[obs_type].addSum(val, weight=weight)
> File "/usr/share/weewx/weewx/accum.py", line 93, in addSum
> raise ValueError("accum: ScalarStats.addSum expected float or int, got
> %s" % val)
> ValueError: accum: ScalarStats.addSum expected float or int, got nan
>
>
> Thanks in advance!!
>
> --
> 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/3da3a69c-7e1a-4a86-ae97-6b86adc7f028o%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/3da3a69c-7e1a-4a86-ae97-6b86adc7f028o%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/CAPq0zEA_yr0OGZqpd3yZ25ZRf6xwz8FLMTaLAfHcjWFTdDPWdg%40mail.gmail.com.