Puzzled

It's difficult to say anything concrete from a stack trace without any other
information. My guess is that g_f in 'File "/home/jrp/GRAF/e_gops.py", line
152' is not a file object or a string, as it should be.

Please remember to *always* provide a minimal and self-contained example
that shows the problem.

Best,
Tiago

Hi Tiago:

I understand the need for context.
However, in this case you have the whole context. The function gt_gml starts with
g = load_graph('./_GT/grf.gt')

and this is the line causing the fault.

attachment.html (3.87 KB)