Hi,
in octoprint.log I get those warnings. They appeared recently, or I didn't notice until now...
The main jinja2 file includes 3 other jinja files (pages for a settings dialog). I found how to do it there : Jinja2 Tutorial - Part 6 - Include and Import | . If I remove the includes and paste all the pages code in the main dialog text, no more warnings.
I suspect that some header/footer is missing in the included files, but I can't find what... Google didn't help.
Sources can be found following this link : OctoPrint_MarlinOSD_Plugin/MarlinOSD_settings.jinja2 at 17b783534b09e35756aa85b3837bbcb30162b623 · yet-another-average-joe/OctoPrint_MarlinOSD_Plugin · GitHub
Part of 1.8.0+, check the notes Release 1.8.0 · OctoPrint/OctoPrint · GitHub under heads up for plugin authors....
To fix the error, remove the ./
from the front of the template and it will resolve relative to your plugin automatically. ./
will attempt to resolve relative to all available templates available.
This resolved issues where plugins had templates with the same name - eg. settings.jinja2
in one plugin. Importing settings.jinja2
then became a lottery from the other plugin as to which it picked up.
Thank you for your quick answers !
Problem solved.
I can't remember why at some point I added or had to add './'. Maybe because in __init__.py
I was changing the working directory to access the low level executable. No idea !
It's a project I've been working on for the last 3 years, from time to time (last time was 6 months ago...). Can't remember...