Thanks for that report! This is caused by a fix that went into b15 for some deprecated functions in Python 3.12. Obviously the fix didn't work.
On Fri, Oct 27, 2023 at 9:54 PM Greg <[email protected]> wrote: > I upgraded to version 15 from 13 and got these errors: > I have reverted back to version 13. > > Oct 28 15:47:47 moonbi weewx[2890951] DEBUG weewx.restx: Shut down > StationRegistry thread. > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: Caught > unrecoverable exception: > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** can't > subtract offset-naive and offset-aware datetimes > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** > Traceback (most recent call last): > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** File > "/opt/weewx/weewx-venv/lib/python3.11/site-packages/weewxd.py", line 157, > in main > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** > engine.run() > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** File > "/opt/weewx/weewx-venv/lib/python3.11/site-packages/weewx/engine.py", line > 175, in run > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** > self.dispatchEvent(weewx.Event(weewx.STARTUP)) > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** File > "/opt/weewx/weewx-venv/lib/python3.11/site-packages/weewx/engine.py", line > 242, in dispatchEvent > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** > callback(event) > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** File > "/opt/weewx/weewx-venv/lib/python3.11/site-packages/weewx/engine.py", line > 581, in startup > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** > self._catchup(self.engine.console.genStartupRecords) > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** File > "/opt/weewx/weewx-venv/lib/python3.11/site-packages/weewx/engine.py", line > 694, in _catchup > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** for > record in generator(lastgood_ts): > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** File > "/opt/weewx/weewx-venv/lib/python3.11/site-packages/weewx/drivers/fousb.py", > line 1094, in genArchiveRecords > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** > records = self.get_records(since_ts) > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** File > "/opt/weewx/weewx-venv/lib/python3.11/site-packages/weewx/drivers/fousb.py", > line 1303, in get_records > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** > dts, ptr = self.sync(read_period=fixed_block['read_period']) > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** File > "/opt/weewx/weewx-venv/lib/python3.11/site-packages/weewx/drivers/fousb.py", > line 1380, in sync > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** if > last_date - prev_date > datetime.timedelta(seconds=50): > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** > ~~~~~~~~~~^~~~~~~~~~~ > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** > TypeError: can't subtract offset-naive and offset-aware datetimes > Oct 28 15:47:47 moonbi weewx[2890951] CRITICAL __main__: **** Exiting. > Oct 28 15:47:47 moonbi systemd[1]: weewx.service: Main process exited, > code=exited, status=1/FAILURE > Oct 28 15:47:47 moonbi systemd[1]: weewx.service: Failed with result > 'exit-code'. > > > On Saturday, 28 October 2023 at 03:11:16 UTC+11 Al Barnes wrote: > >> It's working great after upgrading to v5.0.0b15. >> >> Thanks! >> >> Tom Keffer wrote: >> > Thanks for spotting this. >> > >> > A backwards compatibility shim was inadvertently left out of this beta. >> > It's needed by older extensions. >> > >> > I've uploaded v5.0.0b15. Give it a try. >> > >> > On Thu, Oct 26, 2023 at 10:09 PM Al Barnes <[email protected] >> > <mailto:[email protected]>> wrote: >> > >> > I just upgraded my test unit from b13 to b14 and it throws the >> > following >> > errors on startup. I upgraded the same as always with the command >> > "python3 -m pip install weewx --upgrade". >> > >> > Al >> > >> > Oct 26 21:56:55 p3-2 systemd[1]: Started weewx.service - WeeWX weather >> > system. >> > Oct 26 21:56:55 p3-2 python3[22961]: weewx[22961] INFO __main__: >> > Initializing weewx version 5.0.0b14 >> > Oct 26 21:56:55 p3-2 python3[22961]: weewx[22961] INFO __main__: Using >> > Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] >> > Oct 26 21:56:55 p3-2 python3[22961]: weewx[22961] INFO __main__: >> > Located >> > at /home/al/weewx-venv/bin/python3 >> > Oct 26 21:56:55 p3-2 python3[22961]: weewx[22961] INFO __main__: >> > Platform Linux-6.1.0-rpi4-rpi-v8-aarch64-with-glibc2.36 >> > Oct 26 21:56:55 p3-2 python3[22961]: weewx[22961] INFO __main__: Locale >> > is 'en_US.UTF-8' >> > Oct 26 21:56:55 p3-2 python3[22961]: weewx[22961] INFO __main__: Entry >> > path: /home/al/weewx-venv/lib/python3.11/site-packages/weewxd.py >> > Oct 26 21:56:55 p3-2 python3[22961]: weewx[22961] INFO __main__: Using >> > configuration file /home/al/weewx-data/weewx.conf >> > Oct 26 21:56:55 p3-2 python3[22961]: weewx[22961] INFO __main__: >> > Debug is 0 >> > Oct 26 21:56:55 p3-2 python3[22961]: weewx[22961] INFO weewx.engine: >> > Loading station type Vantage (weewx.drivers.vantage) >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] INFO weewx.engine: >> > StdConvert target unit is 0x1 >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] INFO >> > weewx.wxservices: >> > StdWXCalculate will use data binding wx_binding >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] INFO weewx.engine: >> > Archive will use data binding wx_binding >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] INFO weewx.engine: >> > Record generation will be attempted in 'hardware' >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] INFO weewx.engine: >> > Using archive interval of 300 seconds (specified by hardware) >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] INFO weewx.restx: >> > StationRegistry: Registration not requested. >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] INFO weewx.restx: >> > Wunderground: Posting not enabled. >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] INFO weewx.restx: >> > PWSweather: Posting not enabled. >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] INFO weewx.restx: >> > CWOP: Posting not enabled. >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] INFO weewx.restx: >> > WOW: >> > Posting not enabled. >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] INFO weewx.restx: >> > AWEKAS: Posting not enabled. >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > Caught unrecoverable exception: >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** cannot import name 'accumulateLeaves' from 'weeutil.weeutil' >> > (/home/al/weewx-venv/lib/python3.11/site-packages/weeutil/weeutil.py) >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** Traceback (most recent call last): >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** File >> > "/home/al/weewx-venv/lib/python3.11/site-packages/weewxd.py", line 151, >> > in main >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** engine = weewx.engine.StdEngine(config_dict) >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** File >> > "/home/al/weewx-venv/lib/python3.11/site-packages/weewx/engine.py", >> > line >> > 90, in __init__ >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** self.loadServices(config_dict) >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** File >> > "/home/al/weewx-venv/lib/python3.11/site-packages/weewx/engine.py", >> > line >> > 158, in loadServices >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** obj = weeutil.weeutil.get_object(svc)(self, config_dict) >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** File >> > "/home/al/weewx-venv/lib/python3.11/site-packages/weeutil/weeutil.py", >> > line 1393, in get_object >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** module = importlib.import_module(module_name) >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** File "/usr/lib/python3.11/importlib/__init__.py", line 126, in >> > import_module >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** return _bootstrap._gcd_import(name[level:], package, level) >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> > Oct 26 21:56:56 p3-2 python3[22961]: weewx[22961] CRITICAL __main__: >> > **** File "<frozen importlib._bootstrap>", line 1206, in _gcd_import >> > Oct 26 2 >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "weewx-development" group. >> > To unsubscribe from this group and stop receiving emails from it, >> > send an email to [email protected] >> > <mailto:weewx-development%[email protected]>. >> > To view this discussion on the web visit >> > >> https://groups.google.com/d/msgid/weewx-development/087c6b52-e331-4e2a-9bfc-05f309ff526e%40gmail.com >> < >> https://groups.google.com/d/msgid/weewx-development/087c6b52-e331-4e2a-9bfc-05f309ff526e%40gmail.com>. >> >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "weewx-development" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> > an email to [email protected] >> > <mailto:[email protected]>. >> > To view this discussion on the web visit >> > >> https://groups.google.com/d/msgid/weewx-development/CAPq0zECPCcPg3z_56uga%2BJKJtH3UTctAiAbA0Ep5NNXEqR_pYg%40mail.gmail.com >> < >> https://groups.google.com/d/msgid/weewx-development/CAPq0zECPCcPg3z_56uga%2BJKJtH3UTctAiAbA0Ep5NNXEqR_pYg%40mail.gmail.com?utm_medium=email&utm_source=footer>. >> >> >> -- > You received this message because you are subscribed to the Google Groups > "weewx-development" 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-development/ae2d1487-c4b5-4758-9e3b-dd63319c8cbcn%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/ae2d1487-c4b5-4758-9e3b-dd63319c8cbcn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/CAPq0zEBSAOV3PHe7SZrA9R%2B9O%2Bzs-5tk3CNwp1zVSKtfCnZCkw%40mail.gmail.com.
