Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred: 'LineString' object is not subscriptable #801

Open
3 tasks done
hax0rbana-adam opened this issue Mar 3, 2025 · 0 comments
Open
3 tasks done

An error occurred: 'LineString' object is not subscriptable #801

hax0rbana-adam opened this issue Mar 3, 2025 · 0 comments

Comments

@hax0rbana-adam
Copy link

Prerequisites

  • I have read FAQ
  • I have searched existing issues (including closed ones)
  • I use KiKit at least version 1.7.1 (older version are not supported)

KiKit version

kikit, version 1.7.1

KiCAD version (only KiCAD 8 and 9 are supported)

KiCAD 8.0.8+dfsg-1

Operating system

Debian (trixie)

Description

This is the same issue as #751 but in a new spot (line 1569 in version 1.7.1).

The following patch will fix it

--- /home/user/.local/lib/python3.13/site-packages/kikit/panelize.py	2025-03-03 04:49:03.827537135 -0600
+++ /home/user/.local/lib/python3.13/site-packages/kikit/panelize.py.patched	2025-03-03 04:48:55.897537649 -0600
@@ -1569,7 +1569,7 @@
                 message += "- check your tab placement if it as expected\n"
                 message += "You can use layer style of cuts to see them and validate them."
                 self._renderLines([cut], Layer.Margin)
-                self.reportError(toKiCADPoint(cut[0]), message)
+                self.reportError(toKiCADPoint(cut.coords[0]), message)
                 continue
 
     def makeMouseBites(self, cuts, diameter, spacing, offset=fromMm(0.25),

Steps to Reproduce

On a fully patched Debian Trixie machine, use pip install kikit --break-system-packages to install the kikit package. Try panelizing something. Observe the error.

Example:

./.local/bin/kikit panelize --layout 'grid; rows: 10; cols: 2' --tabs full --cuts vcuts --post 'millradius: 1mm' signet-pcb.kicad_pcb panel.kicad_pcb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant