Comments (12)
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.
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.
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.
same problem after upgrading python to 3.11.9
from ktc.
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.
Just to be sure, where should i paste this file? in /home/wout/klipper/klippy/extras or /home/wout/KTC/extensions
from ktc.
from ktc.
You do need to restart Klipper for code to take effect.
from ktc.
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.
klippy 13 05 24.log
ktc 13 05 24.log
from ktc.
Good find!
I fixed it now, it was an error in the code.
from ktc.
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.
Happy it worked out!
from ktc.
Related Issues (15)
- parent_tool move to ktc_toolchanger.
- Add logic to compare ktc_tool < > on number. None allways being smallest.
- Add inherited ktc classes
- initialize_tool_lock move from tool_changer to ktc and do recusevly.
- Avoid trigger error on M106 HOT 1
- rename_existing field in cfgs causing "Existing command not found" HOT 2
- Update KTC_TOOL_SET_STATE to KTC_SET_STATE in error messages and example configs HOT 2
- KTC_TOOL_OFFSET_SAVE appears to set the last used XYZ parameters even when none are provided. HOT 3
- Migrate TODOs to using Gighub Projects
- Move init toolchanger to ktc events that itterate all changers from top to bottom to initialize in order of inheritance
- Remove purge_on_toolchange. and move to params_
- lazy_home_when_parking changes to inherited .requires_axis_homed
- A tool can have multiple partcooling fans. This should be handled as a list
- Inherits: tool <- inheriting_tool <- toolchanger <- tool <- inheriting_tool <- toolchanger <- ktc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ktc.