Giter Club home page Giter Club logo

Comments (12)

TypQxQ avatar TypQxQ commented on September 25, 2024

Hi!
Thank you for reporting this.
I belive this has to do with a change made in Python 3.11 and that you are running 3.9.
Could you try upgrading your Python to at least 3.11?

from ktc.

TypQxQ avatar TypQxQ commented on September 25, 2024

I made a small change in the dev branch, see if this solves the problem:
https://github.com/TypQxQ/KTC/blob/dev/extensions/ktc_heater.py

This should fix Python prior to 3.11.

from ktc.

darkspeedy26 avatar darkspeedy26 commented on September 25, 2024

I made a small change in the dev branch, see if this solves the problem: https://github.com/TypQxQ/KTC/blob/dev/extensions/ktc_heater.py

This should fix Python prior to 3.11.

Replacing the file without upgrading python didn't help. I put the original file back, and i am now upgrading python.

from ktc.

darkspeedy26 avatar darkspeedy26 commented on September 25, 2024

klippy.log
ktc.log

same problem after upgrading python to 3.11.9

from ktc.

TypQxQ avatar TypQxQ commented on September 25, 2024

It really doesn't make any sense why you get this error.
The log file clearly states that it sees receives "0" as a value and then it passes "HeaterStateType.OFF" and I can't see it converting it to that anywhere. Verry strange.
Have you made any change to the code?

I have made another change in the dev branch. Please try the new version. It basically accepts "HeaterStateType.OFF" as "0".

I can't reproduce this and I can't see why or where it would change the string.

Still: https://github.com/TypQxQ/KTC/blob/dev/extensions/ktc_heater.py

from ktc.

darkspeedy26 avatar darkspeedy26 commented on September 25, 2024

Just to be sure, where should i paste this file? in /home/wout/klipper/klippy/extras or /home/wout/KTC/extensions

from ktc.

TypQxQ avatar TypQxQ commented on September 25, 2024

from ktc.

TypQxQ avatar TypQxQ commented on September 25, 2024

You do need to restart Klipper for code to take effect.

from ktc.

darkspeedy26 avatar darkspeedy26 commented on September 25, 2024

Should suffice inside KTC/extensions as it is linked to the final destination

You do need to restart Klipper for code to take effect.

I already was doing these things and didn't help


The newest version of the file did help. Functionality of the "ktc__tool__set__temperature" seems to be working. Changing between 0, 1, 2 works.

Now i'm getting another fault when Trying to select T0. Again i'm not sure if this would be the fault of my config, or something else.

image
klippy 13 05 24.log
ktc 13 05 24.log

from ktc.

TypQxQ avatar TypQxQ commented on September 25, 2024

Good find!

I fixed it now, it was an error in the code.

from ktc.

darkspeedy26 avatar darkspeedy26 commented on September 25, 2024

I still have to completely test everything, but it seems to be working. I can set tool temperatures and pick up and drop off tools now.

Thanks for your effort!

from ktc.

TypQxQ avatar TypQxQ commented on September 25, 2024

Happy it worked out!

from ktc.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.