-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa1 in position 87: invalid start byte #14
Comments
Ok, error is from binary gcode of MK4S :) |
I got the same error. In Prusaslicer, I had to go to Printers > General and uncheck "Supports Binary G-code" and then save the configuration. The script isn't designed to work with binary g-code files..... yet. |
Submitted a pull request to add binary g-code support. It does however require the bgcode utility to be installed in your path. |
Holy cow, I think I got it working! While trouble shooting with ChatGPT (please excuse my utter lack of coding knowledge), it gave me the following response. I am not sure if it actually changes much, but the changes seem to work allright in combination with the sugested changes above:
|
MacOS + Prusaslicer after generate i have this error:
Post-processing script /usr/bin/python3 “/Users/XXX/Documents/XXX/XXX/bricklayers.py” -layerHeight 0.25 -extrusionMultiplier 1.1 on file /var/folders/fn/_Oyvdbs97rg84l_y9wfh1lqc0000gn/T/.24603_0.gcode.pp failed.
Error code: 1
Output:
Traceback (most recent call last):
File “/Users/XXX/Documents/XXX/XXX/bricklayers.py”, line 139, in process_gcode
File “/Users/XXX/Documents/XXX/XXX/bricklayers.py”, line 46, in process_gcode
lines = infile.readlines()
File “/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/codecs.py”, line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa1 in position 87: invalid start byte
Any idea where find error ? :)
The text was updated successfully, but these errors were encountered: