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

ValueError: invalid null reference in method 'BOARD_ITEM___eq__', argument 2 of type 'BOARD_ITEM const &' #15

Open
knaegt opened this issue Jun 26, 2024 · 1 comment

Comments

@knaegt
Copy link

knaegt commented Jun 26, 2024

Hi! I'm trying to run the KLE plugin, but whenever I do, I get this message:

Traceback (most recent call last):

File "/Users/svamp/Documents/KiCad/8.0/3rdparty/plugins/com_github_zykrah_kicad-kle-placer/kle_placer_action.py", line 514, in Run
placer.Run(dlg.get_key_annotation_format(), dlg.get_stabilizer_annotation_format(), dlg.get_diode_annotation_format(), dlg.get_move_diodes_bool(), dlg.get_relative_diode_bool(), dlg.get_specific_ref_mode_bool())

File "/Users/svamp/Documents/KiCad/8.0/3rdparty/plugins/com_github_zykrah_kicad-kle-placer/kle_placer_action.py", line 296, in Run
first_key = self.get_footprint(key_format.format(1))

File "/Users/svamp/Documents/KiCad/8.0/3rdparty/plugins/com_github_zykrah_kicad-kle-placer/kle_placer_action.py", line 136, in get_footprint
if footprint == None and required:

File "/Volumes/sol2/Apps/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pcbnew.py", line 9450, in __eq__
return _pcbnew.BOARD_ITEM___eq__(self, aItem)

ValueError: invalid null reference in method 'BOARD_ITEM___eq__', argument 2 of type 'BOARD_ITEM const &'

For reference, I'm using KiCad 8.0.3 on an M1 mac, running Sonoma 14.5, and I renamed the switches to MX instead of the default SW. I used marbastlib footprints for the hotswap switches and default library footprints for the rest. The layout is a custom version of a 40% keyboard where the bottom row isn't as wide as the rest of the keyboard.

@zegonix
Copy link

zegonix commented Jun 28, 2024

I use manjaro (xfce) and used the plugin with kicad 7 earlier this year. kicad automatically updated to version 8 and now even after a clean and reinstall the plugin won't work (I tested the exact same situation as in kicad 7). I would assume that this is a version mismatch problem?
best regards, zegonix

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

2 participants