gjr80 / weewx-bloomsky

A weeWX driver for the Bloomsky family of weather stations
GNU General Public License v3.0
3 stars 2 forks source link

Error with logging #5

Open petersw730 opened 3 years ago

petersw730 commented 3 years ago

I'm running WeeWx on a Pi4, but facing some issues with Bloomsky module. Everything seems to be set correctly, but I get the following error:

Sep 5 16:32:59 pi4 systemd[1]: Starting LSB: weewx weather system... Sep 5 16:33:00 pi4 weewx[31392] INFO main: Initializing weewx version 4.5.1 Sep 5 16:33:00 pi4 weewx[31392] INFO main: Using Python 3.7.3 (default, Jan 22 2021, 20:04:44) #012[GCC 8.3.0] Sep 5 16:33:00 pi4 weewx[31392] INFO main: Platform Linux-5.10.60-v7l+-armv7l-with-debian-10.10 Sep 5 16:33:00 pi4 weewx[31392] INFO main: Locale is 'en_US.UTF-8' Sep 5 16:33:00 pi4 weewx[31392] INFO main: PID file is /var/run/weewx.pid Sep 5 16:33:00 pi4 weewx[31400] INFO main: Using configuration file /etc/weewx/weewx.conf Sep 5 16:33:00 pi4 weewx[31400] INFO main: Debug is 0 Sep 5 16:33:00 pi4 weewx[31400] INFO weewx.engine: Loading station type Bloomsky (user.bloomsky) Sep 5 16:33:00 pi4 weewx[31400] CRITICAL main: Caught unrecoverable exception: Sep 5 16:33:00 pi4 weewx[31400] CRITICAL main: **** name 'logging' is not defined

The Traceback shows:

Traceback (most recent call last): File "/usr/share/weewx/weewxd", line 151, in main engine = weewx.engine.StdEngine(config_dict) File "/usr/share/weewx/weewx/engine.py", line 81, in init self.setupStation(config_dict) File "/usr/share/weewx/weewx/engine.py", line 108, in setupStation import(driver) File "/usr/share/weewx/user/bloomsky.py", line 185, in log = logging.getLogger(name) NameError: name 'logging' is not defined

Any suggestions?

gjr80 commented 3 years ago

Yep, looks like I left an old logging call in the code. Try downloading the v2.0.2 release, just download the extension package and install over the top of your current version. No need to uninstall. I have not tested v2.0.2 but it was a simple and obvious error so should be fine. Please let me know how that goes.