RF-tools-KiCAD icon indicating copy to clipboard operation
RF-tools-KiCAD copied to clipboard

Exceptions on round_tracks, solder mask expansion, trace clearance generator

Open arnobert opened this issue 11 months ago • 1 comments

I get the following error:

Exception on python action plugin code

Traceback (most recent call last):

File "/home/user/.local/share/kicad/8.0/scripting/plugins/RF-tools-KiCAD/trace_solder_expander/trace_solder_expander.py", line 150, in Run pcbnew_window = find_pcbnew_w()

File "/home/usser/.local/share/kicad/8.0/scripting/plugins/RF-tools-KiCAD/trace_solder_expander/trace_solder_expander.py", line 57, in find_pcbnew_w pcbneww = [w for w in windows if "pcbnew" in w.GetTitle().lower()] ^^^^^^^

TypeError: 'WindowList_iterator' object is not iterable

OS is Arch, KiCad V8.0.7

Tnx Arno

arnobert avatar Jan 06 '25 22:01 arnobert

found that wrapping wx.GetTopLevelWindows() in list() seems to fix it

electron271 avatar Jun 10 '25 00:06 electron271