HB Dump GBXML not working

Dear community,

Using a Mac and LBT 1.9.18, I noticed that HB Dump GBXML does not export a gbXML anymore. The gbXML output says it has written a file, but not matter what different folder I use, I cannot find any gbXML file written anywhere on my Mac.

Has anyone faced the same issue? I wonder if it is something the developers could look into?

Best,
Farhang

hello @farhang.tahmasebi ,

You are absolutely correct. The HB Dump gbXML component does not work correctly on MacOS right now.

@chris : I think the error is that the component’s Popen call has the argument shell=True, but on MacOS that should be False. Specifically, if you change line 130 from:

process = subprocess.Popen(cmds, shell=True, env=custom_env)

to:

use_shell = True if os.name == 'nt' else False
process = subprocess.Popen(cmds, shell=use_shell, env=custom_env)

it will then work correctly:

best,
@edpmay

3 Likes

Thank you both. I will try to take a look and push a fix tomorrow.

1 Like

I implemented your fix here, @edpmay :

The fix should now be available with the LB Versioner.

Thanks again for reporting, @farhang.tahmasebi .

3 Likes