# Input shaper runs to 133Hz the errors with "AttributeError: module 'numpy' has no attribute 'ndarray'"

**URL:** <https://klipper.discourse.group/t/input-shaper-runs-to-133hz-the-errors-with-attributeerror-module-numpy-has-no-attribute-ndarray/9178>\
**Category:** General Discussion\
**Created:** [June 28, 2023, 12:27am UTC](https://klipper.discourse.group/t/input-shaper-runs-to-133hz-the-errors-with-attributeerror-module-numpy-has-no-attribute-ndarray/9178 "2023-06-28T00:27:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![DireHertz](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@DireHertz](https://klipper.discourse.group/u/DireHertz)\
**Post date:** [June 28, 2023, 12:27am UTC](https://klipper.discourse.group/t/input-shaper-runs-to-133hz-the-errors-with-attributeerror-module-numpy-has-no-attribute-ndarray/9178/1 "2023-06-28T00:27:29Z")

</div>

Printer Model: Kingroon KP3S Pro S1  
MCU / Printerboard: BTT SKR Pico / Pi 4 via UART / Fysetc PIS

I’m having some troubles when trying to run input shaper using a BTT SKR Pico connected via UART to a Pi 4 and the Fysetc Portable Input Shaper tool. The resonance tests run all the way through to 133Hz and then I get an error and I have been searching google endlessly and nothing is seeming to work.

Error in remote calculation: Traceback (most recent call last): File “/home/pi/klipper/klippy/extras/shaper\_calibrate.py”, line 80, in wrapper res = method(\*args) File “/home/pi/klipper/klippy/extras/shaper\_calibrate.py”, line 152, in calc\_freq\_response if isinstance(raw\_values, np.ndarray): AttributeError: module ‘numpy’ has no attribute ‘ndarray’

I get this same error running both 'TEST\_RESONANCES AXIS=X" and “SHAPER\_CALIBRATE.”

---

<div class="post-metadata">

**Author:** ![LifeOfBrian](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/lifeofbrian/32/2380_2.png) [@LifeOfBrian](https://klipper.discourse.group/u/LifeOfBrian)\
**Post date:** [June 28, 2023, 6:24am UTC](https://klipper.discourse.group/t/input-shaper-runs-to-133hz-the-errors-with-attributeerror-module-numpy-has-no-attribute-ndarray/9178/2 "2023-06-28T06:24:39Z")

</div>

Please attach your klippy.log.

---

<div class="post-metadata">

**Author:** ![Johannchopper](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@Johannchopper](https://klipper.discourse.group/u/Johannchopper)\
**Post date:** [January 21, 2024, 12:12pm UTC](https://klipper.discourse.group/t/input-shaper-runs-to-133hz-the-errors-with-attributeerror-module-numpy-has-no-attribute-ndarray/9178/3 "2024-01-21T12:12:40Z")

</div>

I get the same error  
Printerboard: BTT SKR mini E3 V3.0  
Please see attached klippy.log  
[klippy (11).log](https://klipper.discourse.group/uploads/short-url/7JFTbedDROp4tgLrcVezSMM3Xog.log) (1.7 MB)

Did you manage to fix this?

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [January 21, 2024, 2:08pm UTC](https://klipper.discourse.group/t/input-shaper-runs-to-133hz-the-errors-with-attributeerror-module-numpy-has-no-attribute-ndarray/9178/4 "2024-01-21T14:08:24Z")

</div>

Try uninstalling numpy and reinstalling, maybe a bit older version.  
Something like:

```auto
~/klippy-env/bin/pip uninstall -y numpy
~/klippy-env/bin/pip install -v numpy==1.25.2

```

---

<div class="post-metadata">

**Author:** ![Johannchopper](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@Johannchopper](https://klipper.discourse.group/u/Johannchopper)\
**Post date:** [January 22, 2024, 4:07pm UTC](https://klipper.discourse.group/t/input-shaper-runs-to-133hz-the-errors-with-attributeerror-module-numpy-has-no-attribute-ndarray/9178/5 "2024-01-22T16:07:26Z")

</div>

Thanks so much. I had to force install numpy for some reason. Took me a while to figure this out, but all is working well now.

---

<div class="post-metadata">

**Author:** ![BloodAmber](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@BloodAmber](https://klipper.discourse.group/u/BloodAmber)\
**Post date:** [January 23, 2024, 3:44pm UTC](https://klipper.discourse.group/t/input-shaper-runs-to-133hz-the-errors-with-attributeerror-module-numpy-has-no-attribute-ndarray/9178/6 "2024-01-23T15:44:01Z")

</div>

Could you please tell me more about how you did it? 🥲

---

<div class="post-metadata">

**Author:** ![BloodAmber](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@BloodAmber](https://klipper.discourse.group/u/BloodAmber)\
**Post date:** [January 23, 2024, 3:47pm UTC](https://klipper.discourse.group/t/input-shaper-runs-to-133hz-the-errors-with-attributeerror-module-numpy-has-no-attribute-ndarray/9178/7 "2024-01-23T15:47:06Z")

</div>

I’ve tried these instructions but it didn’t work, can you please tell me any other solution 😭

---

<div class="post-metadata">

**Author:** ![Johannchopper](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@Johannchopper](https://klipper.discourse.group/u/Johannchopper)\
**Post date:** [January 23, 2024, 5:45pm UTC](https://klipper.discourse.group/t/input-shaper-runs-to-133hz-the-errors-with-attributeerror-module-numpy-has-no-attribute-ndarray/9178/8 "2024-01-23T17:45:50Z")

</div>

Try this:  
~/klippy-env/bin/pip install --force-reinstall numpy
