Sharper Graph Problem

Basic Information:

Printer Model: Ender 3
MCU / Printerboard: 1.1.4

Describe your issue:

Hi i got problem with generating graph from resonance test.
First i tried in WSL, then i installed Ubuntu Distro just to check whats going on.
Same result:

When i type:
SHAPER_CALIBRATE AXIS=Y
Klipper is creating file:/tmp/calibration_data_y_20231102_195232.csv
And i get output from Klipper:

Recommended shaper_type_y = zv, shaper_freq_y = 42.8 Hz
To avoid too much smoothing with ‘3hump_ei’, suggested max_accel <= 1900 mm/sec^2
Fitted shaper ‘3hump_ei’ frequency = 53.0 Hz (vibrations = 21.7%, smoothing ~= 0.292)
To avoid too much smoothing with ‘2hump_ei’, suggested max_accel <= 2100 mm/sec^2
Fitted shaper ‘2hump_ei’ frequency = 44.2 Hz (vibrations = 22.5%, smoothing ~= 0.276)
To avoid too much smoothing with ‘ei’, suggested max_accel <= 2100 mm/sec^2
Fitted shaper ‘ei’ frequency = 33.4 Hz (vibrations = 27.8%, smoothing ~= 0.289)
To avoid too much smoothing with ‘mzv’, suggested max_accel <= 3100 mm/sec^2
Fitted shaper ‘mzv’ frequency = 32.2 Hz (vibrations = 27.5%, smoothing ~= 0.196)
To avoid too much smoothing with ‘zv’, suggested max_accel <= 7100 mm/sec^2
Fitted shaper ‘zv’ frequency = 42.8 Hz (vibrations = 45.6%, smoothing ~= 0.089)

But when i try to get graph with command:
~/klipper/scripts/calibrate_shaper.py /tmp/calibration_data_y_20231102_195232.csv /tmp/shaper_calibrate_y.png

I get error message:
Traceback (most recent call last):
File “/home/rafi/klipper/scripts/calibrate_shaper.py”, line 174, in
main()
File “/home/rafi/klipper/scripts/calibrate_shaper.py”, line 153, in main
datas = [parse_log(fn) for fn in args]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/rafi/klipper/scripts/calibrate_shaper.py”, line 153, in
datas = [parse_log(fn) for fn in args]
^^^^^^^^^^^^^
File “/home/rafi/klipper/scripts/calibrate_shaper.py”, line 19, in parse_log
with open(logname) as f:
^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ‘tmp/shaper_calibrate_y.png’

Anyone can tell me whats going on?
I upgraded my printer base frame with strong 3d printed support.
I do same commands like i did like a month ago, but i dont get graph png file because of that error.

The correct command is:

~/klipper/scripts/calibrate_shaper.py /tmp/calibration_data_y_20231102_195232.csv -o /tmp/shaper_calibrate_y.png
1 Like

I downgraded Python to 3.9.1(Was always working maybe that was an issue).

With that version with your command entered i have output:

Traceback (most recent call last):
File “/home/rafi/klipper/scripts/calibrate_shaper.py”, line 11, in
import numpy as np, matplotlib
ModuleNotFoundError: No module named ‘numpy’

I did already(versions are latest):
sudo apt install python3-numpy python3-matplotlib libatlas-base-dev
~/klippy-env/bin/pip install -v numpy

I reinstalled everything including klipper and got same message:/

Tried also:
~/klippy-env/bin/python ~/klipper/scripts/calibrate_shaper.py /tmp/calibration_data_y2.csv -o /tmp/shaper_calibrate_y.png

With same result.

If someone will read it some day i found a solution.

Solution was:

~/klippy-env/bin/pip install matplotlib

I messed up a bit made new distro in wsl and did everything properly now all works “out of the box”

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.