The decode error is actually in your configuration file, weewx.conf, and not in the database.
Somehow, your copy of weewx.conf got corrupted. One of the lines has a character sequence that starts out as a utf-8 encoding, but the following byte is not what was expected. Unfortunately, the error does not tell you which line the bad character sequence is in, only that it is in byte position 26 of that line. Perhaps this will help (NOT TESTED): *od -x -A d weewx.conf | grep e0* This should print out the line and offending sequence. -tk On Wed, Aug 19, 2020 at 5:25 AM David Marshall <[email protected]> wrote: > Hi > > Installed a fresh version of weewx 4.1.1 without problem using setup.py on > a raspberry. > > Transferred my existing sqlite database from weewx 3.9.1. It is big, about > 3 years of data. This worked fine. > > But when I tried to use reconfigure I got the following error > > pi@raspberrypi:~ $ /home/weewx/bin/wee_database --reconfigure > /home/weewx/archive/weewx.sdb > Traceback (most recent call last): > File "/home/weewx/bin/wee_database", line 974, in <module> > main() > File "/home/weewx/bin/wee_database", line 128, in main > config_path, config_dict = weecfg.read_config(options.config_path, > args) > File "/home/weewx/bin/weecfg/__init__.py", line 179, in read_config > default_encoding='utf-8') > File "/usr/lib/python3/dist-packages/configobj.py", line 1229, in > __init__ > self._load(infile, configspec) > File "/usr/lib/python3/dist-packages/configobj.py", line 1287, in _load > content = self._handle_bom(content) > File "/usr/lib/python3/dist-packages/configobj.py", line 1437, in > _handle_bom > return self._decode(infile, self.encoding) > File "/usr/lib/python3/dist-packages/configobj.py", line 1517, in _decode > infile[i] = line.decode(encoding) > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 26: > invalid continuation byte > > Anyone know how to fix this? > > > > > -- > 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/97c28bf4-30c7-455c-851f-469187c31c79o%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/97c28bf4-30c7-455c-851f-469187c31c79o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zECdAYF6MxE6Lyd2o8Svq_94pt%2ByMyiy_AniiBOZnT6H_g%40mail.gmail.com.
