Jump to content
Private Messaging is activated - check "How to" on how to disable it ×

ZEISS 2025 Python Script Error - AttributeError with gom.app


---
 Share

Recommended Posts

---

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.image.thumb.png.88073bcc89245fa3afa3dd1a3b012f3f.png

Did gom.app change in 2025?
How can I use gom.app now?

Thanks in advance for your help

Edited
Link to comment
Share on other sites

  • [Se...] changed the title to ZEISS 2025 Python Script Error - AttributeError with gom.app
---

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
Share on other sites

 Share

×
×
  • Create New...