Phil: In looking at your weewx.conf, you may want to switch the process service to be before the comma. I think the error is because you are passing [None] as the first object in the process_services dictionary.
[Engine] [[Services]] process_services = user.as3935.AS3935, After that, it maybe prudent to go through and covert the AS3935 code to python3 syntax. Doug On Tuesday, July 27, 2021 at 6:48:37 AM UTC-4 gjr80 wrote: > > 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/74dfb19b-4ba6-44a2-9bd0-c28672e73f56n%40googlegroups.com.
