Upgrade to 1.4.1:
[darcy@quad-02 ~/jkRadio/]$ pip install turbocase -U
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: turbocase in ~/.local/lib/python3.9/site-packages (1.4)
Collecting turbocase
Downloading turbocase-1.4.1.tar.gz (11 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: sexpdata in ~/.local/lib/python3.9/site-packages (from turbocase) (1.0.2)
Building wheels for collected packages: turbocase
Building wheel for turbocase (setup.py) ... done
Created wheel for turbocase: filename=turbocase-1.4.1-py3-none-any.whl size=13 220 sha256=4559924b978f7a8882810c2ce3be6701510bd23cdd08f0c44909d9fb1300300d
Stored in directory: ~/.cache/pip/wheels/2f/9f/c9/f73c7281b6ebf3b9ded02bdf7e4eca0010d7756bdf92998fd8
Successfully built turbocase
Installing collected packages: turbocase
Attempting uninstall: turbocase
Found existing installation: turbocase 1.4
Uninstalling turbocase-1.4:
Successfully uninstalled turbocase-1.4
Successfully installed turbocase-1.4.1
Run turbocase
[darcy@quad-02 ~/jkRadio]$ turbocase JKradio-GW.kicad_pcb case.scad
Traceback (most recent call last):
File "~/.local/bin/turbocase", line 8, in <module>
sys.exit(main())
File "~/.local/lib/python3.9/site-packages/turbocase/__main__.py", line 17, in main
case = load_pcb(args.pcb, args.layer)
File "~/.local/lib/python3.9/site-packages/turbocase/kicad.py", line 349, in load_pcb
for circle in hole['fp_circle']:
File "~/.local/lib/python3.9/site-packages/turbocase/kicad.py", line 70, in __getitem__
return self.attr[item]
KeyError: 'fp_circle'
[darcy@quad-02 ~/jkRadio]$
Hmm interesting. It looks like there's a mountinghole footprint on the board that does not have any circle graphics to grab the measurements of. Can you write down which footprint it is so I can add it to the tests?
I suspect it's either coming from
MountingHole:MountingHole_2.5mm
or
Connector_Dsub:DSUB-15_Female_Horizontal_P2.77x2.84mm_EdgePinOffset4.94mm_Housed_MountingHolesOffset7.48mm
Though the latter should NOT produce a mechanical tie point to the case. it's a snap in solder connection for the DSUB .
Certainly the Dsub connector, I have a rather lazy way of loading the mountingholes now which is checking if the footprint name contains "MountingHole".
I've pushed version 1.4.2 now which should fix this.
Confirmed working, Thank you