I don’t recommend reverting to 4.2 as it has some issues. The problem you are describing now is do to some issues in your db; specifically, intervals of 0 (4.3 is less forgiving). I found a thread to address it from Jan 6. I’ve pasted Tom’s response below. Rather than deleting records, if you know what the correct interval should be, you could update the records.
Good heavens. That's a lot. I wonder where they all came from? No matter. Here's how to fix (and sorry for giving you the wrong path to the database). # First stop weewx sudo systemctl stop weewx cd /var/lib/weewx # Make a backup: sudo cp weewx.sdb weewx.sdb.backup # Delete all records where interval equals zero: sudo sqlite3 weewx.sdb sqlite> delete from archive where interval==0; sqlite> .quit # Restart weewx sudo systemctl start weewx If you get this error again, there is something wrong with the configuration of your system. -tk > On Jan 20, 2021, at 1:56 PM, Invisible Man <axelle.apvri...@gmail.com> wrote: > > Ok, I see WMR200 has been removed in December 2020, and is now an extension. > I install the extension, and I get more errors > > -- Logs begin at Wed 2021-01-20 16:50:14 CET. -- > Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/manager.py", line 1255, in patch_sums > Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__: **** > self.recalculate_weights(start_d=datetime.date(2020,6,1)) > Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/manager.py", line 1182, in recalculate_weights > Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__: **** > self._do_tranche(mark_d, end_of_tranche_d, weight_fn, progress_fn) > Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/manager.py", line 1215, in _do_tranche > Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__: **** > weight = weight_fn(self, rec) > Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__: **** > File "/usr/share/weewx/weewx/manager.py", line 1366, in _calc_weight > Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__: **** > "Non-positive value for record field 'interval': %s" % > (record['interval'],)) > Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__: **** > IntervalError: Non-positive value for record field 'interval': 0 > Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__: **** > Exiting. > > I'm really unhappy about that :( > When you upgrade, you expect things to work, not things to get broken. If I > had known, I wouldn't have upgraded. > How can I revert to 4.2.0 ? > > > >> On Wednesday, January 20, 2021 at 10:46:32 PM UTC+1 Invisible Man wrote: >> >> Hey! What's happening?! I've upgraded weewx 4.2.0 to 4.3.0 (on a Raspberry >> Pi) and I get this error ! >> >> ``` >> Jan 20 22:33:39 vegan python2[6532]: weewx[6532] INFO __main__: Initializing >> weewx version 4.3.0 >> Jan 20 22:33:39 vegan python2[6532]: weewx[6532] INFO __main__: Using Python >> 2.7.16 (default, Oct 10 2019, 22:02:15 >> [GCC 8.3.0] >> Jan 20 22:33:39 vegan python2[6532]: weewx[6532] INFO __main__: Platform >> Linux-5.4.72-v7+-armv7l-with-debian-10.7 >> Jan 20 22:33:39 vegan python2[6532]: weewx[6532] INFO __main__: Locale is >> 'en_GB.UTF-8' >> Jan 20 22:33:39 vegan python2[6532]: weewx[6532] INFO __main__: PID file is >> /var/run/weewx.pid >> Jan 20 22:33:39 vegan weewx[6520]: Starting weewx weather system: weewx. >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] INFO __main__: Using >> configuration file /etc/weewx/weewx.conf >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] INFO __main__: Debug is 1 >> Jan 20 22:33:39 vegan systemd[1]: Started LSB: weewx weather system. >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] DEBUG __main__: >> Initializing engine >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] INFO weewx.engine: Loading >> station type WMR200 (weewx.drivers.wmr2 >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__: Caught >> unrecoverable exception: >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__: **** >> No module named wmr200 >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__: **** >> Traceback (most recent call last): >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__: **** >> File "/usr/share/weewx/weewxd", lin >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__: **** >> engine = weewx.engine.StdEngine(c >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__: **** >> File "/usr/share/weewx/weewx/engine >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__: **** >> self.setupStation(config_dict) >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__: **** >> File "/usr/share/weewx/weewx/engine >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__: **** >> __import__(driver) >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__: **** >> ImportError: No module named wmr200 >> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__: **** >> Exiting. >> ``` >> >> and indeed there is no longer wmr200 in /usr/share/weewx/weewx/drivers. >> Now only wmr100 or wmr300.py ?! > > -- > 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 weewx-user+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/cb8ae32c-e1ce-41cb-9940-689d5ba0ea50n%40googlegroups.com. -- 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/FD26ADBA-1743-40C2-9D09-04A16436EA6C%40johnkline.com.