Can you add a dependency for python2-jinja? Without it, klipper fails with the following in the log:
Unhandled exception during connect
Traceback (most recent call last):
File "/opt/klipper/klippy/klippy.py", line 134, in _connect
self._read_config()
File "/opt/klipper/klippy/klippy.py", line 129, in _read_config
m.add_printer_objects(config)
File "/opt/klipper/klippy/toolhead.py", line 567, in add_printer_objects
config.get_printer().add_object('toolhead', ToolHead(config))
File "/opt/klipper/klippy/toolhead.py", line 262, in init
self.printer.try_load_module(config, "idle_timeout")
File "/opt/klipper/klippy/klippy.py", line 116, in try_load_module
self.objects[section] = init_func(config.getsection(section))
File "/opt/klipper/klippy/extras/idle_timeout.py", line 113, in load_config
return IdleTimeout(config)
File "/opt/klipper/klippy/extras/idle_timeout.py", line 24, in init
gcode_macro = self.printer.try_load_module(config, 'gcode_macro')
File "/opt/klipper/klippy/klippy.py", line 110, in try_load_module
mod = importlib.import_module('extras.' + module_name)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/opt/klipper/klippy/extras/gcode_macro.py", line 7, in <module>
import jinja2
ImportError: No module named jinja2
Pinned Comments
dack commented on 2023-03-21 07:13 (UTC)
I have updated this package to use python 3. If you are currently using klipper-py3-git, please switch to using this package instead. It's now fully up to date. All future updates will go here and I will be removing klipper-py3-git at some point.