PiCarX - grayscale_calibration.py fails with "'charmap' codec can't encode ..."

Can you please help me resolve this error when running the grayscale_calibration.py module.

‘charmap’ codec can’t encode characters in position 8-45: character maps to <‘undefined’>

Thanks!

Im getting a similar error when trying to run the greyscale calibaration. I get ‘‘latin-1’ codec can’t encode characters in position 8-45: ordinal not in range(256)’ Does anybody have a fix for this?