What are you trying to accomplish? On Mon, Jul 6, 2020 at 1:17 PM Harry Nieuwdorp <[email protected]> wrote:
> Hello Tom, > > I need some help, as i cannot get old data in new weewx.sdb file > > I have tried the following: > pi@HNRpb4:~/weewx/var/lib $ sudo wee_database --transfer weewx3.9.sdb > weewx.sdb --dry-run > Traceback (most recent call last): > File "/usr/share/weewx/wee_database", line 974, in <module> > main() > File "/usr/share/weewx/wee_database", line 128, in main > config_path, config_dict = weecfg.read_config(options.config_path, > args) > File "/usr/share/weewx/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 0xec in position 106: > invalid continuation byte > pi@HNRpb4:~/weewx/var/lib $ > > this does not work. > > I also cannot copy weewx3.9.sdb in /var/lib/ dir also not as a sudo su. > how do i do this. > > Import files do not help either, by the way these are in > user/share/weewx/import. not in util as doc descripes. > > Help is apreciated. i am a beginner with linux. > > Regards Harry de PE1IAA > > Op zaterdag 4 juli 2020 14:56:45 UTC+2 schreef Harry Nieuwdorp: >> >> Dear group, >> >> I have the following problem to update my sqlite database from 3.9 into >> 4.1 >> >> I get the following info: >> pi@HNRpb4:/var/lib/weewx $ wee_import >> --import-config=/home/pi/Weewx/Lib/weewx3.9.sdb --dry-run >> Using WeeWX configuration file /etc/weewx/weewx.conf >> Starting wee_import... >> **** 'utf-8' codec can't decode byte 0xec in position 106: invalid >> continuation byte >> **** Nothing done, exiting. >> >> what can i do to repair pos. 106 >> >> how can i open weewx3.9.sdb database >> >> Thanks in advance for help. >> >> Regards Harry de PE1IAA >> > -- > 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/b380bbf7-174d-4faa-a99e-bda9c8e32b27o%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/b380bbf7-174d-4faa-a99e-bda9c8e32b27o%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/CAPq0zEBqAH0vs0N0PRAt2vQHJWNs8AKVep5c1X6YAaCjc%3DSTHA%40mail.gmail.com.
