Error in tool_offsetview.py

More
3 years 11 months ago - 3 years 11 months ago #257830 by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
I am using version Python 3.7.3
Last edit: 3 years 11 months ago by MarkoPolo.
More
3 years 11 months ago #258004 by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py


The problem is in gcode_editor.py . In the version from Sep 15, 2022 it still works fine, in newer versions there is already a problem. It seems to me that comments in gcode should be accepted in every language of the world.
 
More
3 years 11 months ago #258070 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Yes I was hoping it was related to python version. I test with a newer version then you.
3.8.10.
I'm still not sure why you have a problem but I do not.
More
3 years 11 months ago #258096 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
could you try changing the line 110 to :

source = source.decode("utf-8", "ignore")

see if that helps?
More
3 years 11 months ago #258107 by MarkoPolo
Replied by MarkoPolo on topic Error in tool_offsetview.py
Yes, when added to line 110 "ignore" , it works without error.
Maybe it's actually a python version problem if you're using 3.8.10
More
3 years 11 months ago #258111 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
could be in new versions 'ignore' is default. Thanks for testing I'll push that fix to 2.9
The following user(s) said Thank You: tommylight, MarkoPolo
Moderators: cmorley
Time to create page: 0.151 seconds
Powered by Kunena Forum