How did you delete the readings? Did you use a tool like DB Browser for sqlite? If so, when it deletes a value, unless you tell it otherwise, it inserts an empty string, instead of a "null" value, which will cause your problem.
The tool wee_database <http://weewx.com/docs/utilities.htm#wee_database_utility> can fix this. First run with the --check-strings <http://weewx.com/docs/utilities.htm#wee_database_utility_check_strings> option, then the --fix-strings <http://weewx.com/docs/utilities.htm#Action_--fix-strings> option. -tk On Mon, Nov 5, 2018 at 2:24 AM Richard Cain <richardtc...@gmail.com> wrote: > Hi > I recently had my usual problem with inaccurate rain readings so I had to > stop weewx, delete the wrong readings and restart. However, now weewx won't > restart. I have attached the log but the main problem seems to be this: > > engine: Caught unrecoverable exception in engine: > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** unsupported operand > type(s) for +=: 'float' and 'unicode' > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** Traceback (most > recent call last): > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** File > "/home/richard/weewx/bin/weewx/engine.py", line 865, in main > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** engine = > engine_class(config_dict) > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** File > "/home/richard/weewx/bin/weewx/engine.py", line 77, in __init__ > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** > self.loadServices(config_dict) > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** File > "/home/richard/weewx/bin/weewx/engine.py", line 141, in loadServices > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** > self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict)) > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** File > "/home/richard/weewx/bin/weewx/engine.py", line 491, in __init__ > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** > self.setup_database(config_dict) > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** File > "/home/richard/weewx/bin/weewx/engine.py", line 604, in setup_database > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** _nrecs, _ndays = > dbmanager.backfill_day_summary() # @UnusedVariable > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** File > "/home/richard/weewx/bin/weewx/manager.py", line 1464, in > backfill_day_summary > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** > day_accum.addRecord(rec, weight=weight) > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** File > "/home/richard/weewx/bin/weewx/accum.py", line 242, in addRecord > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** func(self, > record, obs_type, add_hilo, weight) > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** File > "/home/richard/weewx/bin/weewx/accum.py", line 301, in add_value > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** > self[obs_type].addSum(val, weight=weight) > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** File > "/home/richard/weewx/bin/weewx/accum.py", line 88, in addSum > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** self.sum += > val > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** TypeError: > unsupported operand type(s) for +=: 'float' and 'unicode' > Nov 5 10:07:59 richard-ub1710 weewx[8005]: **** Exiting. > > I have no idea about python but I recently upgraded my system from Ubuntu > 18.04 to 18.10 and presume it is something to do with this. > I have attached a more complete log. > Hope someone can help. > Regards > Richard > > -- > 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. > For more options, visit https://groups.google.com/d/optout. > -- 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. For more options, visit https://groups.google.com/d/optout.