I've uninstalled and now when I try to reinstall weewx, I get the below errors. Do I need to format the SD card and reinstall Raspberry Pi and weewx from scratch?
Get:1 http://weewx.com/apt/python3 buster/main all weewx all 4.9.1-1 [1,838 kB] Fetched 1,838 kB in 1s (3,467 kB/s) Preconfiguring packages ... Selecting previously unselected package weewx. (Reading database ... 85483 files and directories currently installed.) Preparing to unpack .../archives/weewx_4.9.1-1_all.deb ... Unpacking weewx (4.9.1-1) ... Setting up weewx (4.9.1-1) ... update-rc.d: error: unable to read /etc/init.d/weewx dpkg: error processing package weewx (--configure): installed weewx package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: weewx E: Sub-process /usr/bin/dpkg returned an error code (1) On Wednesday, January 4, 2023 at 11:04:10 PM UTC-8 Kevin Key wrote: > And now I'm getting this: > > Jan 4 23:02:10 ubuntu weewx[2305] INFO __main__: Initializing weewx > version 4.9.1 > Jan 4 23:02:10 ubuntu weewx[2305] INFO __main__: Using Python 3.9.2 > (default, Jan 4 2023, 21:11:01) #012[GCC 10.2.1 20210110] > Jan 4 23:02:10 ubuntu weewx[2305] INFO __main__: Located at > /usr/bin/python3 > Jan 4 23:02:10 ubuntu weewx[2305] INFO __main__: Platform > Linux-5.15.76-v8+-aarch64-with-glibc2.31 > Jan 4 23:02:10 ubuntu weewx[2305] INFO __main__: Locale is 'en_GB.UTF-8' > Jan 4 23:02:10 ubuntu weewx[2305] INFO __main__: Using configuration file > /home/weewx/weewx.conf > Jan 4 23:02:10 ubuntu weewx[2305] INFO __main__: Debug is 0 > Jan 4 23:02:10 ubuntu weewx[2305] INFO weewx.engine: Loading station type > SDR (user.sdr) > Jan 4 23:02:10 ubuntu weewx[2305] CRITICAL __main__: Caught unrecoverable > exception: > Jan 4 23:02:10 ubuntu weewx[2305] CRITICAL __main__: **** No module > named 'user.sdr' > Jan 4 23:02:10 ubuntu weewx[2305] CRITICAL __main__: **** Traceback > (most recent call last): > Jan 4 23:02:10 ubuntu weewx[2305] CRITICAL __main__: **** File > "/home/weewx/bin/weewxd", line 148, in main > Jan 4 23:02:10 ubuntu weewx[2305] CRITICAL __main__: **** engine > = weewx.engine.StdEngine(config_dict) > Jan 4 23:02:10 ubuntu weewx[2305] CRITICAL __main__: **** File > "/home/weewx/bin/weewx/engine.py", line 81, in __init__ > Jan 4 23:02:10 ubuntu weewx[2305] CRITICAL __main__: **** > self.setupStation(config_dict) > Jan 4 23:02:10 ubuntu weewx[2305] CRITICAL __main__: **** File > "/home/weewx/bin/weewx/engine.py", line 108, in setupStation > Jan 4 23:02:10 ubuntu weewx[2305] CRITICAL __main__: **** > __import__(driver) > Jan 4 23:02:10 ubuntu weewx[2305] CRITICAL __main__: **** > ModuleNotFoundError: No module named 'user.sdr' > Jan 4 23:02:10 ubuntu weewx[2305] CRITICAL __main__: **** Exiting. > Jan 4 23:02:10 ubuntu systemd[1]: weewx.service: Main process exited, > code=exited, status=1/FAILURE > Jan 4 23:02:10 ubuntu systemd[1]: weewx.service: Failed with result > 'exit-code'. > > On Wednesday, January 4, 2023 at 9:13:24 PM UTC-8 Kevin Key wrote: > >> What's going on? >> >> tarting weewx (via systemctl): weewx.service. >> weewx[791] DEBUG __main__: **** File >> "/usr/lib/python3.9/threading.py", line 316, in wait >> >> weewx[791] DEBUG __main__: **** gotit = waiter.acquire(True, >> timeout) >> >> weewx[791] DEBUG __main__: **** File "/usr/share/weewx/weewxd", >> line 245, in sigTERMhandler >> >> weewx[791] DEBUG __main__: **** raise Terminate >> >> weewx[791] DEBUG __main__: **** Terminate >> > -- 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/0b564146-0511-4589-8f6a-302a833311a5n%40googlegroups.com.
