KLayout / klayout

KLayout Main Sources
http://www.klayout.org
GNU General Public License v3.0
813 stars 208 forks source link

RuntimeError: Cannot determine format from filename in SaveLayoutOptions.set_format_from_filename #513

Closed tkoyat closed 4 years ago

tkoyat commented 4 years ago

I used the packaging tool pyinstaller to package the code, causing a format problem:

Traceback (most recent call last): File "1.py", line 27, in value = opt.set_format_from_filename(file_gds) RuntimeError: Cannot determine format from filename in SaveLayoutOptions.set_format_from_filename [7023] Failed to execute script 1

klayoutmatthias commented 4 years ago

What is the value of "file_gds"?

klayoutmatthias commented 4 years ago

I think the problem is related to the pyinstaller tool and the way it packages the libraries. It does not package the dynamically-linked stream reader plugins.

Please don't use pyinstaller. Use setup.py/distutils instead.

Matthias