-
-
Notifications
You must be signed in to change notification settings - Fork 13
klipper-preprocessor does not appear in "add a script" list - Cura 4.7.1 #16
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
Comments
Hi @bengalih thank you for opening this issue. I have tested the script with Cura 4.13 and it worked fine there, so I would expect it to work with any Cura 4.x though I have not tested it there. I would check if the script file downloaded correctly (try to open the file on Notepad or any other text editor and compare the contents with this) |
It appears that the python version must have been updated to 3.6 post Cura 4.7 and so it does not appear to support the I went through the code and made the following changes:
This appears to have allowed the extenstion to load without error, but I have not fully tested yet. |
What happened
I don't know if Cura 4.7.1 is not supported. I don't see any information on the main page about supported Cura versions.
Assuming it is supported, the script is not appearing.
Cura.log states:
2025-04-08 17:01:42,534 - ERROR - [MainThread] UM.Logger.logException [106]: Exception: Exception occurred while loading post processing plugin: invalid syntax (KlipperPreprocessor.py, line 160) 2025-04-08 17:01:42,538 - ERROR - [MainThread] UM.Logger.logException [110]: Traceback (most recent call last): 2025-04-08 17:01:42,542 - ERROR - [MainThread] UM.Logger.logException [110]: File "C:\Program Files\Ultimaker Cura 4.7\plugins\PostProcessingPlugin\PostProcessingPlugin.py", line 197, in loadScripts 2025-04-08 17:01:42,545 - ERROR - [MainThread] UM.Logger.logException [110]: spec.loader.exec_module(loaded_script) # type: ignore 2025-04-08 17:01:42,549 - ERROR - [MainThread] UM.Logger.logException [110]: File "<frozen importlib._bootstrap_external>", line 693, in exec_module 2025-04-08 17:01:42,553 - ERROR - [MainThread] UM.Logger.logException [110]: File "<frozen importlib._bootstrap_external>", line 799, in get_code 2025-04-08 17:01:42,556 - ERROR - [MainThread] UM.Logger.logException [110]: File "<frozen importlib._bootstrap_external>", line 759, in source_to_code 2025-04-08 17:01:42,560 - ERROR - [MainThread] UM.Logger.logException [110]: File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed 2025-04-08 17:01:42,564 - ERROR - [MainThread] UM.Logger.logException [110]: File "C:\Users\bhendin\AppData\Roaming\cura\4.7\scripts\KlipperPreprocessor.py", line 160 2025-04-08 17:01:42,567 - ERROR - [MainThread] UM.Logger.logException [110]: add_timelapse_take_frame: bool = self.getSettingValueByKey("add_timelapse_take_frame") 2025-04-08 17:01:42,571 - ERROR - [MainThread] UM.Logger.logException [110]: ^ 2025-04-08 17:01:42,575 - ERROR - [MainThread] UM.Logger.logException [110]: SyntaxError: invalid syntax
This is on a Windows 11 system.
I do plan to upgrade Cura, but right now I am comfortable on 4.7.1 and want to work out all the kinks in my current migration to Klipper first before I throw a new verison in the mix. If the issue is with 4.7.1, I will just wait until I'm able to upgrade.
In the meantime, is there any way to just get Mainsail's pause at layer functions working via Cura?
Thanks.
What did you expect to happen
Klipper script appears
How to reproduce
Place python script in scripts directory and restart Cura.
Additional information
No response
The text was updated successfully, but these errors were encountered: