> Think I will try weewx 3.9.2, as I think that was the last python2 version
All WeeWX releases to date have been python 2 compatible, including any 4.x releases. Python 4.0.0 and later are also python 3 compatible. It all comes down to what dependencies you have installed and what version of python WeeWX is run under. Gary On Tuesday, 27 July 2021 at 19:51:04 UTC+10 [email protected] wrote: > 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/601c80e6-618b-4d99-b209-633160dff7d5n%40googlegroups.com.
