klipper-web-control-docker icon indicating copy to clipboard operation
klipper-web-control-docker copied to clipboard

Can't perform input shaper tuning due to bad klippy-env

Open HitLuca opened this issue 1 year ago • 3 comments

I just finished tuning my klipper input shaper, but not without issues. Looks like the provided python env in ~/klippy-env has issues, more specifically it returns errors when running klippy-env/bin/pip install numpy (something similar to no module named packaging.utils from pip._vendor.packaging). This issue made me try everything to get it working, but at the end the simplest solution was to recreate it with

pip install virtualenv
rm -r /home/klippy/klippy-env
virtualenv --python="/usr/bin/python2.7" klippy-env

after those commands the numpy installation succeeded!

HitLuca avatar Aug 31 '22 20:08 HitLuca

Just to ease the following steps, make sure to install numpy and matplotlib on the system interpreter too using pip, otherwise you'll need to run the klipper/scripts/calibrate_shaper.py /tmp/resonances_#_*.csv -o /tmp/shaper_calibrate_#.png command by specifying the python interpreter in klippy-env

HitLuca avatar Aug 31 '22 20:08 HitLuca

just added numpy & matplotlib as global pip installs, with klipper now also supporting python3 this s a lot more straightforward

dimalo avatar Sep 22 '22 22:09 dimalo

just reopened to make sure the release builds, then will close and reference in release notes...

dimalo avatar Sep 22 '22 22:09 dimalo