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!
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?
Exactly the same error message here. Did you ever get past it?
Thanks!
I have a fix. I debugged grayscale_calibration.py and found a problem in the code. It’s just the code that puts the instructions up on the screen. The first line in the variable “manual” is not regular ascii, so you get that error. The fix is easy if you are comfortable editing the code. It’s not difficult. You can do it in Thonny or just in a text editor. Find in the code (near the top) the line that says manual = f’‘’. Delete the 4 lines of text under that comprising the box with the text hat says “Picar-X Grayscale Module Reference Calibration Helper” You must delete the box lines as those are the real problem. When you’re done, the code should look like:
manual = f’‘’
config_file: {config_path}
press [Q] to start line reference calibration,
press [E] to start cliff reference calibration
[SPACE]: confirm calibration [Ctrl+C]: quit
‘’’
If you aren’t adept at coding, then copy the original file to another file like grayscale_calibration-1.py and modify that. This way, you’ll always have the original. If you run the modified code, it will work. Worked for me!
If there are any questions, please let me know