Thanks Vince Changed Line 233 to except Exception as e: It then moved to Line 73 === no such module but sudo pip3 install RPi_AS3935 seems to have cured that (Installed ver 0.2.0 OK) Now it stuck on Line 153 'object not callable. (address=addr, bus=bus) In weewx.conf I have [AS3935] address = 3 bus = 1 Pin 17 calibration = 6
Think I will try weewx 3.9.2, as I think that was the last python2 version , just to see if my lighnting sensor does work. Phil On Monday, July 26, 2021 at 9:42:19 PM UTC+1 vince wrote: > See https://github.com/weewx/weewx/wiki/faq-python-error > > You have a variety of options: > > - find a later version of the driver/extension that supports python3 > - patch your copy to be python3 compliant using 2to3 > - use python2 for your installation > > In your particular case it looks like the second option is pretty trivial. > > Change the offending line to be > except Exception as e: > > And see if that works ok... > > -- 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/e4f34bca-e52e-4e58-8a53-72851fea2961n%40googlegroups.com.
