INTI-CMNB / KiAuto

A bunch of scripts to automate KiCad processes
Apache License 2.0
71 stars 19 forks source link

kicad2step_do ERROR:False #34

Closed Thorfinn-Thorsson closed 1 year ago

Thorfinn-Thorsson commented 1 year ago

I am in the process of updating our build server from kicad7_auto:1.6.2 to kicad7_auto:1.6.3 and there is a error that has popped up in relation to 3D Model generation. The error isn't stopping the build and a model is still generated.

image

Looking at a verbose log file does not give any other hints to why the error has occured.

INFO:KiCad to STEP wrapper ERROR:False (kicad2step_do - kicad2step_do:140) DEBUG:Command: ['kicad-cli', 'pcb', 'export', 'step', '-o', '/data/datapack/test/ASSY_test/Render3D/test-B-3D.step', '-f', '--grid-origin', '--no-virtual', '--min-distance=0.0001mm', '--subst-models', '/data/tmpbuswqqwj.kicad_pcb'] (kicad2step_do - kicad2step_do:150) INFO:Loading board Determining PCB data Board Thickness from stackup: 1.580 mm

So I have done a little digging and it seems the error is produced when setting no_virtual: true in the options for type: 'step'. The error is getting printed on kicad2step_do.py:140 which was added in this commit .

Does this error actual have a purpose or is it just a left over debug print.

set-soft commented 1 year ago

Hi @MadAnonMan ! Thanks for reporting, it was a debug message to check if the script detected KiCad 8. Now removed on the git code.