Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown config object 'save_variables' when including filaments into the config #2

Open
Nathan22211 opened this issue Sep 4, 2023 · 2 comments
Assignees

Comments

@Nathan22211
Copy link

I largely just have [filaments] in my printer config for this and this is occurring looking at the klippy log I found this

Config error
Traceback (most recent call last):
  File "/home/klipper/klipper/klippy/klippy.py", line 175, in _connect
    self._read_config()
  File "/home/klipper/klipper/klippy/klippy.py", line 141, in _read_config
    self.load_object(config, section_config.get_name(), None)
  File "/home/klipper/klipper/klippy/klippy.py", line 130, in load_object
    self.objects[section] = init_func(config.getsection(section))
  File "/home/klipper/klipper/klippy/extras/filaments.py", line 436, in load_config
    return FilamentPresets(config)
  File "/home/klipper/klipper/klippy/extras/filaments.py", line 16, in __init__
    self.save_vars = self.printer.lookup_object('save_variables')
  File "/home/klipper/klipper/klippy/klippy.py", line 97, in lookup_object
    raise self.config_error("Unknown config object '%s'" % (name,))
configparser.Error: Unknown config object 'save_variables'
@garethky
Copy link
Owner

garethky commented Sep 4, 2023

Yes, that's right, you need a [save_variables] config section. See documentation here.

I don't see this mentioned in the readme so the docs need an update.

@garethky garethky self-assigned this Sep 4, 2023
garethky added a commit that referenced this issue Sep 4, 2023
Add note about [save_variables] being required to Config Reference section.
@Nathan22211
Copy link
Author

just going to mention this now, it seems you made changes to the naming of the extra's config and variables. What you have in the docs for custom parameters now gives this error when it runs across it !! Error on 'set_pressure_advance advance={printer.extruder.filament.pa}': unable to parse {printer.extruder.filament.pa}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants