matthewwall / weewx-sdr

weewx driver for software-defined radio
GNU General Public License v3.0
114 stars 74 forks source link

DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead #172

Open mfraser opened 1 year ago

mfraser commented 1 year ago

Running python 3.10 I get the above warning Changing the line self.setDaemon(True) to self.daemon = True gets rid of the error.

Same goes for these errors /usr/share/weewx/user/sdr.py:193: DeprecationWarning: setName() is deprecated, set the name attribute instead self.setName(label) /usr/share/weewx/user/sdr.py:196: DeprecationWarning: getName() is deprecated, get the name attribute instead logdbg("start async reader for %s" % self.getName())