WeatherflowUDP Traceback

36 views
Skip to first unread message

pilotbri

unread,
May 7, 2020, 3:57:23 PM5/7/20
to weewx-user
New install of WeeWX and WeatherflowUDP and I get the following error in the log


May  7 13:20:03 bs-medianuc weewx[20711] INFO weewx.engine: Starting main packet loop.
May  7 13:20:03 bs-medianuc /weewxd: weatherflowudp: MainThread: Listening for UDP broadcasts to IP address <broadcast> on port 50222, with timeout 90 and share_socket False...
May  7 13:20:06 bs-medianuc weewx[20711] INFO weewx.engine: Main loop exiting. Shutting engine down.
May  7 13:20:06 bs-medianuc weewx[20711] CRITICAL __main__: Caught unrecoverable exception:
May  7 13:20:06 bs-medianuc weewx[20711] CRITICAL __main__:     ****  a bytes-like object is required, not 'str'
May  7 13:20:06 bs-medianuc weewx[20711] CRITICAL __main__:     ****  Traceback (most recent call last):
May  7 13:20:06 bs-medianuc weewx[20711] CRITICAL __main__:     ****    File "/home/weewx/bin/weewxd", line 154, in main
May  7 13:20:06 bs-medianuc weewx[20711] CRITICAL __main__:     ****      engine.run()
May  7 13:20:06 bs-medianuc weewx[20711] CRITICAL __main__:     ****    File "/home/weewx/bin/weewx/engine.py", line 188, in run
May  7 13:20:06 bs-medianuc weewx[20711] CRITICAL __main__:     ****      for packet in self.console.genLoopPackets():
May  7 13:20:06 bs-medianuc weewx[20711] CRITICAL __main__:     ****    File "/home/weewx/bin/user/weatherflowudp.py", line 295, in genLoopPackets
May  7 13:20:06 bs-medianuc weewx[20711] CRITICAL __main__:     ****      m0 = m[0].replace(",null",",None")
May  7 13:20:06 bs-medianuc weewx[20711] CRITICAL __main__:     ****  TypeError: a bytes-like object is required, not 'str'
May  7 13:20:06 bs-medianuc weewx[20711] CRITICAL __main__:     ****  Exiting.

any ideas?


pilotbri

unread,
May 7, 2020, 3:59:13 PM5/7/20
to weewx-user
Oh, I should probably add, Ubuntu 18.04, python3 

vince

unread,
May 7, 2020, 4:01:32 PM5/7/20
to weewx-user
On Thursday, May 7, 2020 at 12:57:23 PM UTC-7, pilotbri wrote:
New install of WeeWX and WeatherflowUDP and I get the following error in the log
 
May  7 13:20:06 bs-medianuc weewx[20711] CRITICAL __main__:     ****  TypeError: a bytes-like object is required, not 'str'
May  7 13:20:06 bs-medianuc weewx[20711] CRITICAL __main__:     ****  Exiting.



Would need the usual description of your system (weewx version, apt or setup.py install, python2 or python3, driver version, etc.) but typically that message means you are running python3 weewx against code only ported to python2

I see you also posted in the WF forum page for that driver.  You might want to go back to that forum and scroll up 'two' messages for the driver author's answer to this one.

pilotbri

unread,
May 7, 2020, 4:03:12 PM5/7/20
to weewx-user
Thanks, that gets me pointed in the right direction! Sorry, I scanned the thread and didn't catch that post.

pilotbri

unread,
May 7, 2020, 4:39:36 PM5/7/20
to weewx-user
Nuked python3 and reinstalled WeeWx, all good now. Thanks again for getting me pointed in the right direction.
Reply all
Reply to author
Forward
0 new messages