Closed mawildoer closed 2 years ago
Thanks for the clear error report! I've replicated the error. I'll try to push a correction to the development branch today.
Well, I found the reason for this error: the drawing commands for KiCad V6 symbols are not processed so there's nothing for the SVG generator to work on. This is a larger fix than I can do right now, so your only immediate fix is to drop back and use KiCad V5 libraries. Sorry!
I've opened an enhancement issue and closed this one.
Good morning, the problem still persists! I installed skidl version 1.1.0 , and use it under jupyter. and I get the following error:
for the same previous file!
Thank you for your assistance.
Describe the bug I've run
generate_svg()
on a couple of scripts now that successfullygenerate_netlist
s, but it consistently raises an exceptionUnboundLocalError: local variable 'num_units' referenced before assignment
(with a traceback)To Reproduce Steps to reproduce the behavior:
generate_svg()
to the bottom of a seemingly otherwise functional script (see snippet below)Snippet:
Expected behavior An SVG to be generated, per docs here: https://devbisme.github.io/skidl/#svg-schematics
Screenshots
Desktop (please complete the following information):
Additional context As I mentioned at the top, I've attempted this on a few other designs, but it's consistently arising. I feel like this is something likely to have been raised before me though, so not sure what's up. Thank you for your assistance. It's greatly appreciated!