Frix-x / klippain

Generic Klipper configuration for 3D printers
GNU General Public License v3.0
892 stars 232 forks source link

python3: can't open file '/home/pi/printer_data/config/scripts/system_info.py': [Errno 2] No such file or directory #334

Closed EraserFX closed 11 months ago

EraserFX commented 11 months ago

Klippain branch

Version

v4.1.1-1-gb49bcbfb

Describe the bug and expected behavior

Mainsail Console: python3: can't open file '/home/pi/printer_data/config/scripts/system_info.py': [Errno 2] No such file or directory

my user folder is not pi. how can i change it?

Additional information and klippy.log

klippy (7).log

mUbsta commented 11 months ago

Add the following to ~/printer_data/config/overrides.cfg replacing < username > with the user folder name

[gcode_shell_command system_info]
command: python3 /home/< username >/printer_data/config/scripts/system_info.py

You might want to add this at the same time.

[gcode_shell_command plot_graph]
command: bash /home/< username >/printer_data/config/scripts/plot_graphs.sh
Surion79 commented 11 months ago

it is fixed in the next version of klippain. Then the setting is independent of the user name.