Unable to open file by layout.write()

When I create and write to a new layout, new file can't be created with error:
"Unable to open file: /Users⁩/.../result.oas (errno=2) in Layout.write
/Users/.../pymacros/XXX.py:35"

Comments

  • Hi zzz,

    "errno 2" is a Unix error code saying the file can't be found ... I think this happens in your case because the path does not exist completely.

    For example, if the path if "/home/matthias/output/layout.gds" and "output" does not exist, you'll get this message.

    Matthias

Sign In or Register to comment.