yaqwsx / KiKit

Automation tools for KiCAD
https://yaqwsx.github.io/KiKit
MIT License
1.49k stars 200 forks source link

Cannot Perform Error #681

Closed vardelean closed 3 months ago

vardelean commented 3 months ago

Prerequisites

KiKit version

1.5.1

KiCAD version

8.0.2

Operating system

Windows 11

Description

When trying to panelize, I get the following error:

image

Steps to Reproduce

1) Open a new standalone PCB editor 2) Open the KiKit plugin from the new editor window 3) Select pcb input file that I want to panelize 4) Run Panelize 5) The error pops up

Things I tried:

Any help is much, much appreciated! Thank you!

yaqwsx commented 3 months ago

Without a PCB file that we can use for reproduction, there is not much we can do...

vardelean commented 3 months ago

No problem, please see attached.

Thank you! Boost_Max_1A.zip

yaqwsx commented 3 months ago

Well, there is no board in the files you provided.

vardelean commented 3 months ago

I apologize, I zipped the wrong file, my bad! Please see attached. Thank you!

Boost_Max_1A_Board.zip

yaqwsx commented 3 months ago

I just tested this on KiKit 1.5.1+16.g5a5d509 and I can't reproduce the issue. Are you sure there are no extra steps to reproduce this issue?

vardelean commented 3 months ago

Thank you for looking into this!

The steps I highlighted initially are the only ones I took: open a new PCB Editor (standalone), open KiKit plugin, select the PCB file, select a Json file I already saved, and hit panelize.

I believe the issue may be with my computer or with the installation of the KiKIt plugin, because I get the same error on any PCBs I select for panelization, not just the one I sent you. It just happened I noticed the issue on the PCB I attached earlier because I never used the KiKit plugin before.

As I said before, I tried to uninstall KiKit using the KiCad Component Manager and then re-install KiKIt, but that did not help. I also tried to turn off the Firewall (Avast), did not help either.

Any suggestions are very much appreciated.

Thank you!

vardelean commented 3 months ago

Some new information: the pluging is actually working but not when importing the JSON I attached in the previous zipped. Here's the JSON attached:

Panel 3x3.json

As soon as I import the JSON configuration, I get the error. Could you please try again but this time using the attached JSON? Thank you!

yaqwsx commented 3 months ago

You specified selecting the board via footprint annotation in the section source but you didn't provide the annotation reference. Therefore, the error is expected, it should just have more clear wording. The wording was fixed in 32187ad. If you change source to auto, everything works.

vardelean commented 3 months ago

This is wonderful, thank you so much for your help! Works like a charm!