It took an hour of fiddling with configurations, but I was able to reproduce the error on CentOS 7.9.
The problem seems to be a bug in older versions of ConfigObj. If you install ConfigObj using yum, you get V4.7, which ignores the encoding parameter. See the change log for v5.0.1 <https://configobj.readthedocs.io/en/latest/configobj.html#version-5-0-1>. I was able to get the problem to go away by installing a newer version using pip: *sudo pip install configobj==5.0.6* Before you do that, if possible, I'd be interested in hearing what version of ConfigObj you were using. Unfortunately, how to figure that out depends on which version you have (!). Not all versions even have a version number, but try this: *python -c "import configobj;print(configobj.__version__)"* -tk On Wed, Apr 20, 2022 at 1:26 PM kheller2 <khell...@gmail.com> wrote: > I was not using any driver, just the simulated one. Vince reproduced the > same issue. install the product, stop it and run reconfigure with all > defaults. > I would provide my configuration but I've since installed python3 and EL8 > package on my Cent7 box, but you can easily reproduce the same problem by > changing to python2. > > On Wednesday, April 20, 2022 at 9:07:18 AM UTC-4 tke...@gmail.com wrote: > >> Karl, >> >> Can you tell me which driver you were using when you tried to >> reconfigure? Even better, perhaps you could send me your private copy of >> the weewx.conf you were using? tke...@gmail.com >> >> -tk >> >> On Tue, Apr 19, 2022 at 5:04 PM kheller2 <khel...@gmail.com> wrote: >> >>> It's also related to python2. I installed 4.7 and most of the python3 >>> components on Centos7 forced installed the rpm for EL8. Works good, and of >>> course the config crashes if you use python2, but works with python3. i >>> will be building out a EL8 box soon. >>> >>> On Tuesday, April 19, 2022 at 2:38:24 PM UTC-4 kheller2 wrote: >>> >>>> Actually, the fix mentioned in #172 is not in my copy >>>> of cheetahgenerator.py. But even after adding it and recompiling it still >>>> bombs out. >>>> >>>> >>>> On Monday, April 18, 2022 at 5:05:58 PM UTC-4 matthew wall wrote: >>>> >>>>> On Monday, April 18, 2022 at 11:11:59 AM UTC-4 kheller2 wrote: >>>>> >>>>>> File "/usr/lib/python2.7/site-packages/configobj.py", line 1457, in >>>>>> _handle_bom >>>>>> if not line.startswith(BOM): >>>>>> UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position >>>>>> 0: ordinal not in range(128) >>>>>> >>>>> >>>>> the first think i thought of was the BOM problem that was fixed in >>>>> issue: >>>>> >>>>> https://github.com/weewx/weewx/issues/172 >>>>> >>>>> -- >>> 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+...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/a9a76ccb-c89a-4783-a05f-2f13397c3da3n%40googlegroups.com >>> <https://groups.google.com/d/msgid/weewx-user/a9a76ccb-c89a-4783-a05f-2f13397c3da3n%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 weewx-user+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/db069fca-20c4-45df-84d1-0ffa5679f964n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/db069fca-20c4-45df-84d1-0ffa5679f964n%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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEAJSU06Hcv2%2B0WaeJv1TicKQ%3D_t2MmKpXcAFwCBWKJ-FQ%40mail.gmail.com.