Skip to content

Via fence generator "remove vias violating clearance rules" option giving python error #69

Description

@Merlin04

I'm using KiCad 8.0.5 on Linux - I'm getting this error whenever I check the "remove vias violating clearance rules" box, seemingly regardless of what I have selected.

Traceback (most recent call last):

  File "/home/me/.local/share/kicad/8.0/scripting/plugins/RF-tools-KiCAD/via_fence_generator/viafence_action.py", line 624, in Run
    removed = self.checkPads()
              ^^^^^^^^^^^^^^^^

  File "/home/me/.local/share/kicad/8.0/scripting/plugins/RF-tools-KiCAD/via_fence_generator/viafence_action.py", line 186, in checkPads
    hTest = pcbnew.BOX2I(int(viaPos[0] - local_offset*expansion),int(viaPos[1] - local_offset*expansion), pcbnew.VECTOR2I(int(2 * expansion * local_offset),int(2 * expansion * local_offset)))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib64/python3.11/site-packages/pcbnew.py", line 5256, in __init__
    _pcbnew.BOX2I_swiginit(self, _pcbnew.new_BOX2I(*args))
                                 ^^^^^^^^^^^^^^^^^^^^^^^^

TypeError: new_BOX2I expected at most 2 arguments, got 3
Additional information:
Wrong number or type of arguments for overloaded function 'new_BOX2I'.
  Possible C/C++ prototypes are:
    BOX2< VECTOR2I >::BOX2()
    BOX2< VECTOR2I >::BOX2(VECTOR2< int > const &,VECTOR2< int > const &)
    BOX2< VECTOR2I >::BOX2(VECTOR2< int > const &)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions