Connector footprint generation by kicad-footprint-generator

I want to add some Hirose FH12 connectors footprints with 1mm pitch. Looking on repository I’ve found out that footprints of this series with 0,5mm pitch were generated with help of kicad-footprint-generator.

I’ve decided that makes sense to modify this script

I tried it for generation this way

python conn_ffc_hirose_fh12_smd_side.py --global_config ./../conn_config_KLCv3.yaml

and got such error

Traceback (most recent call last):
File “conn_ffc_hirose_fh12_smd_side.py”, line 249, in
generate_one_footprint(pins_per_row, configuration)
File “conn_ffc_hirose_fh12_smd_side.py”, line 56, in generate_one_footprint
pad_silk_off = configuration[‘silk_line_width’]/2 + configuration[‘silk_pad_clearance’]
KeyError: ‘silk_line_width’

Looks like it needs some another configuration file but I couldn’t find it. Sorry but I’m completely newbie in python. Could somebody give an explanation?

You need to use python 3 (python 2 is not supported by any of my scripts.)

But to be honest i do not think that this is the problem here. (Using python 2 will however lead to invalid footprints as the division behaves differently between python 2 and python 3.)
Try without giving a global config file (the scripts should run without any parameter set.)

It works! Thanks a lot!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.