[Se...] Posted March 11, 2025 Share Posted March 11, 2025 (edited) Hello everyone, I’m encountering an issue with the ZIP 2025 version when trying to access the software_directory path via Python scripting. I used to use the following code successfully in earlier versions: # -*- coding: utf-8 -*- import gom print(gom.app.software_directory) However, in the 2025 version, this results in the error: AttributeError: module 'gom' has no attribute 'app' In the GUI (see screenshot), I can see Application and things like Software directory working fine. But in Python, gom.app doesn’t work anymore. Did gom.app change in 2025? How can I use gom.app now? Thanks in advance for your help Edited March 11, 2025 Link to comment https://qualityforum.zeiss.com/topic/22697-zeiss-2025-python-script-error-attributeerror-with-gomapp/ Share on other sites More sharing options...
[Se...] Posted March 12, 2025 Author Share Posted March 12, 2025 I found the problem! It happened because my license was not detected properly while running the script. What’s interesting is that I could still add new app scripts and do other operations without any issues. Also, import gom worked fine. The error only happened when I tried to use gom.app, and I got this message: AttributeError: module 'gom' has no attribute 'app' After fixing the license issue, gom.app worked again. Hope this helps anyone with the same problem! Link to comment https://qualityforum.zeiss.com/topic/22697-zeiss-2025-python-script-error-attributeerror-with-gomapp/#findComment-128079 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