diff options
author | JamesH1978 <87171443+JamesH1978@users.noreply.github.com> | 2024-10-28 19:06:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 15:06:48 -0400 |
commit | 94da4d10d7910996883415353db25227da11eb06 (patch) | |
tree | fb9a3e24b79e91d900eacbec888fc3eb0cc30fb4 /docs | |
parent | 31fe50ffa387ed4a45950c1043a3b214a9d554dd (diff) | |
download | kutter-94da4d10d7910996883415353db25227da11eb06.tar.gz kutter-94da4d10d7910996883415353db25227da11eb06.tar.xz kutter-94da4d10d7910996883415353db25227da11eb06.zip |
docs: Update Measuring_Resonances.md for some NumPY version issues (#6719)
It has been noted over the last six to eight months that some versions of Numpy have issues with the klipper python environment on some machines. This PR introduces a fixed version that is known to work and a small test for people to do to make sure there are no output issues from the get go. These have been pulled from the pinned posts in the discord, from a time when 1.26 was causing issue, and now it seems v2 is also having some issues, hence the change.
Signed-off-by: James Hartley <james@hartleyns.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Measuring_Resonances.md | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/Measuring_Resonances.md b/docs/Measuring_Resonances.md index d5f7f54c..81c2eb96 100644 --- a/docs/Measuring_Resonances.md +++ b/docs/Measuring_Resonances.md @@ -212,12 +212,20 @@ sudo apt install python3-numpy python3-matplotlib libatlas-base-dev libopenblas- Next, in order to install NumPy in the Klipper environment, run the command: ``` -~/klippy-env/bin/pip install -v numpy +~/klippy-env/bin/pip install -v "numpy<1.26" ``` Note that, depending on the performance of the CPU, it may take *a lot* of time, up to 10-20 minutes. Be patient and wait for the completion of the installation. On some occasions, if the board has too little RAM -the installation may fail and you will need to enable swap. +the installation may fail and you will need to enable swap. Also note +the forced version, due to newer versions of NumPY having requirements +that may not be satisfied in some klipper python environments. + +Once installed please check that no errors show from the command: +``` +~/klippy-env/bin/python -c 'import numpy;' +``` +The correct output should simply be a new line. #### Configure ADXL345 With RPi |