Option 'step_pin' is not valid in section 'stepper_x'

@garethky

Checked the Klipper Documents none is a valid setting for kinematics.

It is, however, none defines no axes. So all [stepper_] sections are invalid:

This config file:

[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_240050000F51383438343939-if00

[printer]
kinematics: none
max_velocity: 1000
max_accel: 1000

[stepper_x]
step_pin: PF13

Produces this error:

Section 'stepper_x' is not a valid config section

And in the klipper log:

=======================
Config error
Traceback (most recent call last):
  File "/home/pi/klipper/klippy/klippy.py", line 130, in _connect
    self._read_config()
  File "/home/pi/klipper/klippy/klippy.py", line 127, in _read_config
    pconfig.check_unused_options(config)
  File "/home/pi/klipper/klippy/configfile.py", line 497, in check_unused_options
    self.validate.check_unused(config.fileconfig)
  File "/home/pi/klipper/klippy/configfile.py", line 441, in check_unused
    raise error("Section '%s' is not a valid config section"
configparser.Error: Section 'stepper_x' is not a valid config section

OP’s config isn’t valid. I don’t know what config exactly generated the error they posted, but I kinda doubt its the one posted here.

(that or something they did to klippy/configfile.py caused a different error to be produced?)

Well, that’s the question

I think I’ve answered your question. If you would just like your setup to start working, you need to pick kinematics that is not none.

You may need to develop your own kinematics for a robot arm. You should read this Adding New Kinematics

As your log indicates:

Git version: 'v0.12.0-458-gd886c1761-dirty'
Modified files: klippy/configfile.py

You made some kind of code change to the way config files are read. We cant guess whats going on with that because you haven’t shown us a git diff. You should revert this file, nothing you want to do requires changing it.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.