Thanks Gary. I've decided to redo my Raspberry Pi 4 image from scratch. Since posting my earlier message, I started having other issues.
On Saturday, October 23, 2021 at 7:28:59 PM UTC-7 gjr80 wrote: > Sounds like a python 2/3 mismatch to me. What version of python does WeeWX > run under? Check the WeeWX log during startup, it may be different to the > version invoked by the ‘python’ command from the bash prompt. How did you > install smbus2? With pip or pip3? If WeeWX is running under python 3 and > you installed smbus2 using pip and not pip3 WeeWX/python will not be able > to find smbus2. > > Gary > > On Sunday, 24 October 2021 at 11:02:30 UTC+10 [email protected] wrote: > >> Hi, >> >> 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 >> >> -- 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/b2000bc1-171f-4da5-a3b5-e4cf21d3607cn%40googlegroups.com.
