Skip to content
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

Failed to load printer configuration: stream did not contain valid UTF-8 #71

Open
TrainAss opened this issue Oct 19, 2024 · 1 comment

Comments

@TrainAss
Copy link

After performing the dump of the config to a json file, when I try to manually run klipper estimator in post-process mode, I get the error

Failed to load printer configuration: stream did not contain valid UTF-8

I've attached my config as well as a sample of the gcode I'm trying to run this on.

k1.json
Baby_Dog_Eyes_PLA.gcode.txt

--

I've been trying to figure out why it's not processing some gcodes and is processing others.

@dalegaard
Copy link
Collaborator

Hi @TrainAss

Somehow the config file you ended up with UTF-16, where it should be UTF-8. I have no idea how this could happen, but it's definitely caused by something outside of klipper_estimator. My guess would be, if you are on Windows, that it's the act of piping to a file that could be the issue.

Best regards,
Lasse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants