It looks like you're new here. If you want to get involved, click one of these buttons!
Can anyone tell me what this error message is, and if there's any way to resolve it? I'm trying to read in a gds file created on another application. It must be messing up a field that klayout needs, but I can't tell what it is.
Comments
It looks like the exception was thrown from:
The function signature implies that when creating a new cell (from your GDS2 file),
a cell name might be missing (empty).
A buddy command line tool,
strm2txt
, would help.An example run of
strm2txt
Since you are using a Mac version, see the instructions shown below.
I'll give it a shot, sekigawa-san. Thank you
@BillG and @sekigawa "strm2txt" may not work as it reads the file before writing it as text and the reader will fail already.
For the purpose of debugging file issues I created a direct conversion tool (https://github.com/klayoutmatthias/dump_oas_gds2). However, there are only sources, no binaries. There is a Makefile which should be good enough for most cases, but building it is in particular easy on Linux.
Matthias
Hello @Matthias,
I understand it. I'll try to make the debugging tools in different environments.
Kazzz-S
Hello @BillG,
I could build the above dump tools on
macOS Monterey
using Apple clang version 14.0.0.===> https://github.com/klayoutmatthias/dump_oas_gds2/issues/2#issuecomment-1863817572
If you need the executables (for Intel Mac), I can provide you with them.
I also found another simple GDS2-->ASCII dump tool in Python suggested by ChatGPT.
I have modified the original code a bit.
===> https://github.com/Kazzz-S/gds2ascii-tool-project
1.
dump_gds2 testdata/gds/t10.gds
2.
gds2ascii.py testdata/gds/t10.gds
Kazzz-S
I have fixed the bug of
gds2ascii.py
.2-retry.
gds2ascii.py testdata/gds/t10.gds