Persistent 'Invalid config section' error for [gcode_shell_command] after fresh install

Basic Information:

MCU / Printerboard: BTT Octopus v1.1
Host / SBC : Pi 3b+
klippy.log
klippy (19).log (53.3 KB)

issue:

Subject: Persistent ‘Invalid config section’ error for [gcode_shell_command] after fresh install

Hi Klipper community,

I’m facing a persistent issue with my Klipper installation where I consistently get the error “Section ‘gcode_shell_command …’ is not a valid config section” whenever I try to define a shell command in my printer.cfg.

This is on a fresh installation of Klipper (previously it was running fine, i haven’t changed anything after installation) (klipper installed using [mention method - KIAUH] on a Raspberry Pi 3b+ on running [Debian GNU/Linux 12 (bookworm)].

I have tried the following troubleshooting steps:

  • checking file path, permissions, encoding, minimal config, etc.]

Here is the test code
[gcode_shell_command test_command]
command: echo “Test”
timeout: 5.0
verbose: True

Hello @MirSadique !

The mentioned command is not provided by Klipper, though the error message.
Did you have had some extensions on your old install?

Your klippy.log does not indicate that you have the needed extension installed. You can use KIAUH to do so: Choose E for Extensions then 1 for ‘G-Code Shell Command’

Sorry i cant remember

Found it under 4. Advanced → 8. G-code shell command