Pinion
Pinion copied to clipboard
PCB image blank
Hi and congrats on this concept! I'm trying to generate the diagram but it comes back as blank pngs.. What I did was to install pinion via pip3 and WSL (ubuntu20.04) in Windows 10, at first some libraries were missing (imagemagick and Wand) which I installed as well. Then I had to install kicad in WSL as well because it couldn't locate the pcbnew module. Then I ran : pinion template --board bench-PSU.kicad_pcb --output bpsu.yaml and a yaml was generated, and then I ran: pinion generate --board bench-PSU.kicad_pcb --specification bpsu.yaml . which only generated some warnings like the one below: Warning: component 'PinHeader_1x02_P2.54mm_Vertical.back' for footprint 'SW5' from library 'Connector_PinHeader_2.54mm' was not found
And finally I ran: pinion serve -b --directory .
And the page opened had the pins working hovering the mouse and clicking them but the PCB was a blank image. I tried the pngs directly with paint and indeed they were blanks....
What can I see to make it work?
This a probably because of incompatible versions of Inkscape and ImageMagick installed. Please see the discussion (linked to relevant issues) here: https://github.com/yaqwsx/PcbDraw/issues/48#issuecomment-821963357
Tried the patch you suggest and installed the suggested imagemagick version described in linked issue: https://github.com/ImageMagick/ImageMagick/issues/3564 Then the error changed:
Traceback (most recent call last):
File "/home/grego/.local/bin/pinion", line 8, in
The situation with ImageMagick being constantly broken made me rewrite the conversion handling in PcbDraw. You can install the upstream version of PcbDraw and then, it should work just fine.