yaqwsx / KiKit

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

KiKit crashes on PCB with castelations #618

Closed bem22 closed 11 months ago

bem22 commented 11 months ago

Prerequisites

KiKit version

1.4.0

KiCAD version

7

Operating system

Linux - UBUNTU 23.04

Description

I followed the guide and when I click Panelize, Pcbnew crashes

Steps to Reproduce

Using my kicad_pcb and multi.json click panelize

multi.json wembed-systems-bms-v2.zip

When running kikit as a script, I get this error:

kikit panelize -p multi/multi.json wembed-systems-bms-v2.kicad_pcb panel.kicad_pcb

/home/user1/.local/lib/python3.11/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection return lib.intersection(a, b, **kwargs)

yaqwsx commented 11 months ago

I just tested your panel on kikit, version 1.4.0+20.gbb263ac (current upstream) and it works with no problems:

Screenshot from 2023-12-03 08-42-00

Please, use the upstream version or wait for the next release.

bem22 commented 10 months ago

It still crashes for me with the latest commit from the main branch

Strangely this only affects that particular file and I can't understand why the hell.

It works fine with other files even before upgrading KiKit

image

@yaqwsx

yaqwsx commented 10 months ago

Any chance that you use Shapely 2.0?

bem22 commented 10 months ago

image

Should I?