-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
'ResonanceTester' object has no attribute 'test' (latest Klipper break Shake&Tune) #172
Comments
Same issue as well. |
Also having the same issue
|
Also have the same issue :/ |
This has to do with the new Klipper update, something was changed in the shaper calibration. I have the same problem. |
Yes this indeed a known problem. Klipper has merged a change in the resonance testing code (with a new kind of test) and Shake&Tune is impacted. So until I fix the compatibility, please either:
I'm at SMRRF so I'm not really able to fix it until I get back home at the end of the week unfortunately... But don't panic, I've identified the problem and will fix it as soon as possible 🙂 |
From the Klipper Configuration Changes page. 20241203: The resonance test has been changed to include slow sweeping moves. This change requires that testing point(s) have some clearance in X/Y plane (+/- 30 mm from the test point should suffice when using the default settings). The new test should generally produce more accurate and reliable test results. However, if required, the previous test behavior can be restored by adding options sweeping_period: 0 and accel_per_hz: 75 to the [resonance_tester] config section. |
Did not work for me. Just wait for the fix |
I've started working on a fix. A first step is already available on https://github.com/Frix-x/klippain-shaketune/tree/fix-sweeping-compat This first step is only to fix the error and allow the test to run correctly on new Klipper versions. However, it currently doesn't support the new sweeping test for now (I'm working on adding compatibility at the moment). |
How do i install this fixed version? |
You may need to fix some config, looks like |
i did what you said but i still get the error tho. I have checked the cfg seems like it should be right so how do i know if it did update / replace the old one with the fixed version? |
confirm, that OpenNept4une (Elegoo N4+) with this quick fix works ;) Thanks! |
fix works for my customised TwoTrees SK1 just fine, thank you! |
Maybe you have cloned shaketune to "~/klippain-shaketune" (dash) instead of "klippain_shakletune" (underscore) The Install-script doesn't exactly use the repo name and this might lead to issues........................................................ |
Im very sure about that it did it correctly i have tried to crosscheck the files and everything should be the fixed version but im still getting erros |
I'm adding the "done" label since everything is now functional with my latest commits on this branch. With the new code:
This will be merged now into the develop branch to be released tonight :) |
Thank @Frix-x great work to get this fixed. How do I get the develop branch on my system? PS I normally use inside moonraker:
|
How do you get the new 5.0 version ? |
Hi, has the latest v5.0 on develop branch been merged with main yet? Ii doesn't look like it has, but I thought I checked. thanks |
That's why @Frix-x wrote it's still in develop branch. |
yeah, I thought so too, but the label done confuses me slightly. |
I think you can just change the branch to develop and no change in moonraker. https://www.freecodecamp.org/news/git-switch-branch/ PS I have not tried it yet :-) |
i made it work asking chatgpt about how i could change it to another branch and changed the moonraker config to the develop branch |
Please share the details. So all can learn :-) |
This worked for me to go onto the pull request for v5.0.0 |
Thanks! This also worked for me, but I also needed to change: This:
To This:
|
Cheers all. I did run the install.sh previously, what I was missing was what @lucidhack mentioned about the change on [shaketune] under printer.cfg. it's now working. one last question however, once it's been merged to main, I presume it will just appear in moonraker as per normal and running update from it should update the current state of shaketune? |
You would do the same steps but the branch would be |
Can someone explain to me why there are branches and if there is a working V5 why the old version is the last one up? |
Yeah, I get that. But we ran install.sh which I believe installed dev version without changing Moonraker cfg file. |
Don't know what I am doing. Tried
and failed. Will wait until the develop branch gets pulled into main. Any idea when this might happen?. |
git clone https://github.com/Frix-x/klippain-shaketune.git Try this |
@Raouad Thank you. I think I will wait. I don't want to be using patched solutions just to try now. I am in no real need to use this now. I was just curious. Can wait. |
why is this closed ? I just had this issue occur. What is the solution ? Thank you |
Update to last version 5.x |
K-Shake&Tune module branch
Version
v4.1.0-1-g66f5e32e
Describe the bug and expected behavior
When attempting to run Shake & Tune on the latest Klipper version I get the error
'ResonanceTester' object has no attribute 'test'
.Could this be related to the recent Klipper behavior change for
test_resonances
?Klipper3d/klipper@16b4b6b
Additional information and klippy.log
Klipper Version: v0.12.0-396-gb7233d11
klippy.log
The text was updated successfully, but these errors were encountered: