Closed claudermilk closed 1 year ago
It can't find your Klipper socket. The default location is in the home directory of the user running the script in printer_data/comms/klippy.sock
(e.g. /home/pi/printer_data/comms/klippy.sock
). If your Klipper socket is in a different location, you can pass the --klippy-uds /some/other/location/some.sock
flag to probe_accuracy.py
.
There's a note in the README talking about this:
If you get a FileNotFoundError, your Klipper API server socket may be in a different location. You can pass a different location to the script using the --klippy-uds /some/other/location option
I'm an idiot. I read that and it did not register. Looks like on my install it's ./printer_data/comms/moonraker.sock and that runs fine.
I'm an idiot. I read that and it did not register. Looks like on my install it's ./printer_data/comms/moonraker.sock and that runs fine.
No, moonraker.sock
is different, that's the Moonraker socket, you need the Klipper socket. You can run the following command on your pi to see where that socket is
ps -ef | grep klippy
The output will look something like (scroll right if you don't see the whole line)
pi 620 1 3 May16 ? 05:08:14 /home/pi/klippy-env/bin/python /home/pi/klipper/klippy/klippy.py /home/pi/printer_data/config/printer.cfg -l /home/pi/printer_data/logs/klippy.log -I /home/pi/printer_data/comms/klippy.serial -a /home/pi/printer_data/comms/klippy.sock
pi 335652 335612 0 23:05 pts/1 00:00:00 grep --color=auto klippy
The socket is the path after the -a
option, in my case you see -a /home/pi/printer_data/comms/klippy.sock
(which is the default that probe accuracy script looks for). Your Klipper socket must be elsewhere, perhaps in /tmp/
.
Huh, that's weird. I have no klippy.sock on my system at all. Yet it works fine. This was more for my own interest, so I'm not going to mess around with a working system and possibly break it.
I am running into this error when executing the probe_accuracy.py script:
I carefully followed the install instructions. python3 is installed, python-venv shows I am at 3.7.3-1. plotly shows all installed. I do have the script at ~/probe_accuracy which is where I am running it from. I'm not sure what file it cannot find.