On 2021-12-09 10:38:58 +, Chris Green wrote:
> Julio Di Egidio wrote:
> > Still your code wouldn't pass review: you do need some exception
> > handling there
[...]
> However catching and re-trying isn't going to help at all. It happily
> produced the same arror every 10 minutes throughout th
Inada Naoki wrote:
> On Wed, Dec 8, 2021 at 2:52 AM Chris Green wrote:
> >
> >
> > At 03:40 last night it suddenly started throwing the following error every
> > time it ran:-
> >
> > Fatal Python error: initfsencoding: Unable to get the locale encoding
> > LookupError: unknown encoding:
Julio Di Egidio wrote:
> On 08/12/2021 10:50, Chris Green wrote:
> > Julio Di Egidio wrote:
> >> On 07/12/2021 16:28, Chris Green wrote:
> >>> What could have caused this? I certainly wasn't around at 03:40! :-)
> >>> There aren't any automatic updates enabled on the system, the only
> >>> thing
On Wed, Dec 8, 2021 at 2:52 AM Chris Green wrote:
>
>
> At 03:40 last night it suddenly started throwing the following error every
> time it ran:-
>
> Fatal Python error: initfsencoding: Unable to get the locale encoding
> LookupError: unknown encoding: UTF-8
>
> Current thread 0xb6f8d
Julio Di Egidio wrote:
> On 07/12/2021 16:28, Chris Green wrote:
> > I have a very short Python program that runs on one of my Raspberry
> > Pis to collect temperatures from a 1-wire sensor and write them to a
> > database:-
> >
> > #!/usr/bin/python3
> > #
> > #
> > # read te
Chris Green wrote at 2021-12-7 15:28 +:
>I have a very short Python program that runs on one of my Raspberry
>Pis to collect temperatures from a 1-wire sensor and write them to a
>database:-
> ...
>At 03:40 last night it suddenly started throwing the following error every
>time it ran:-
>
>
I have a very short Python program that runs on one of my Raspberry
Pis to collect temperatures from a 1-wire sensor and write them to a
database:-
#!/usr/bin/python3
#
#
# read temperature from 1-wire sensor and store in database with date and
time
#
import sqlite3
im