[Ca...] Posted April 8 Share Posted April 8 Hello, I'm trying to update the setup a kiosk on the zeiss inspect 2025 on a pc that already had a kiosk in the 2023 version. The default kiosk works well, the problem i'm heaving is that old custom patches dont want to run and i get the error : AttributeError: 'Settings' object has no attribute 'APP_VERSION' the error is on this part of the script where I load the config file from "C:\Users\Public\Documents\KIOSK\2025\KioskInterface_settings repeatability.cfg" the cfg_path was None in the old version and it worked, and the config file it's trying to load exists. The problem is not in the content of the config file as i've tried to just copy the default config file into the new one and I have the exact same error. I think the error could come from how the patch is coded, maybe the new version of the patch added some more parameters to set up that i'm missing on the code. What could be the solution for this? Link to comment Share on other sites More sharing options...
[Ma...] Posted Monday at 12:56 PM Share Posted Monday at 12:56 PM (edited) From the picture it looks like your CustomPatch contains a copy of a Kiosk function. This is likely to break on any Software Update. In principle you have to check your patch on every update (also Service Packs !) and bring your code copies up-to-date. If possible, only use the patch mechanism to extend an existing function by calling the Kiosk original function and only add code in front of the original or after the original call (do not forget to pass on return values). This is much more stable and only breaks on rare interface changes. Additional note: For scripting / Kiosk questions it is much better to attach full executable scripts and complete tracebacks as text files. (Python won't execute image files...) Edited Monday at 12:57 PM Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in