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.
weewx
Description: Binary data