Suddenly I'm getting a smbus2 error. I've tried reinstalling smbus2 and Python3 numerous times. Not sure what the issue is now.
pi@RaspberryPi4:/etc/weewx $ tail -f /var/log/weewx.log
Oct 23 18:00:26 RaspberryPi4 weewx[2152] INFO user.sdr: sensor map is {'outTemp': 'temperature.02BC.AcuriteAtlasPacket', 'outHumidity': 'humidity.02BC.AcuriteAtlasPacket', 'windSpeed': 'wind_speed.02BC.AcuriteAtlasPacket', 'windDir': 'wind_dir.02BC.AcuriteAtlasPacket', 'UV': 'uv.02BC.AcuriteAtlasPacket', 'radiation': 'lux.02BC.AcuriteAtlasPacket', 'lux': 'lux.02BC.AcuriteAtlasPacket', 'Atlas_rain_total': 'rain_total.02BC.AcuriteAtlasPacket', 'strikes_total': 'strike_count.02BC.AcuriteAtlasPacket', 'strike_dist': 'strike_distance.02BC.AcuriteAtlasPacket', 'windBatteryStatus': 'battery.02BC.AcuriteAtlasPacket'}
Oct 23 18:00:26 RaspberryPi4 weewx[2152] INFO user.sdr: deltas is {'rain': 'Atlas_rain_total', 'lightningStrikes': 'strikes_total', 'lightningDistance': 'strike_dist'}
Oct 23 18:00:26 RaspberryPi4 weewx[2152] INFO user.sdr: startup process 'sudo /usr/local/bin/rtl_433 -M utc -F json'
Oct 23 18:00:26 RaspberryPi4 weewx[2152] DEBUG user.sdr: start async reader for stdout-thread
Oct 23 18:00:26 RaspberryPi4 weewx[2152] DEBUG user.sdr: start async reader for stderr-thread
Oct 23 18:00:26 RaspberryPi4 weewx[2152] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
Oct 23 18:00:26 RaspberryPi4 weewx[2152] DEBUG weewx.engine: Finished loading service weewx.engine.StdTimeSynch
Oct 23 18:00:26 RaspberryPi4 weewx[2152] DEBUG weewx.engine: Loading service user.bme280wx.Bme280wx
Oct 23 18:00:26 RaspberryPi4 weewx[2152] INFO user.sdr: shutdown process sudo /usr/local/bin/rtl_433 -M utc -F json
Oct 23 18:00:26 RaspberryPi4 weewx[2152] DEBUG user.sdr: waiting for stdout-thread
Oct 23 18:00:29 RaspberryPi4 weewx[2152] DEBUG user.sdr: waiting for stderr-thread
Oct 23 18:00:39 RaspberryPi4 weewx[2152] INFO user.sdr: timed out waiting for stderr-thread
Oct 23 18:00:39 RaspberryPi4 weewx[2152] DEBUG user.sdr: close stdout
Oct 23 18:00:39 RaspberryPi4 weewx[2152] DEBUG user.sdr: close stderr
Oct 23 18:00:42 RaspberryPi4 weewx[2152] DEBUG user.sdr: kill process
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: Caught unrecoverable exception:
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** No module named 'smbus2'
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** Traceback (most recent call last):
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** File "/usr/share/weewx/weewxd", line 151, in main
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** engine = weewx.engine.StdEngine(config_dict)
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 93, in __init__
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** self.loadServices(config_dict)
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** obj = weeutil.weeutil.get_object(svc)(self, config_dict)
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** File "/usr/share/weewx/weeutil/weeutil.py", line 1119, in get_object
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** mod = __import__(module)
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** File "/usr/share/weewx/user/bme280wx.py", line 5, in <module>
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** import smbus2
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** ModuleNotFoundError: No module named 'smbus2'
Oct 23 18:00:42 RaspberryPi4 weewx[2152] CRITICAL __main__: **** Exiting.
^X^C