Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4848

Python • Re: CPU Temperature Test Not Working; Need File Format

$
0
0
In the first place, you should avoid the use of Python 2.7 and the encoding header was removed. Using the encoding header in Python 3.x code is wrong and will be ignored by the interpreter. Python 3 source code is encoded by default utf8.

If the exception still occurs, the encoding is maybe broken. Use a better IDE/Editor.

PS: Often python is a symlink to python2.7 on old distributions. Use python3 explicit.

Statistics: Posted by DeaD_EyE — Mon Sep 30, 2024 9:38 am



Viewing all articles
Browse latest Browse all 4848

Trending Articles