new footprint wizard fails with python3 AttributeError

Description

In the footprint editor I try to make a new footprint using the S-DIP wizard and it fails to draw. It also puts up a python traceback. I expected it to draw.

The following wizards fail. They fail to draw anything in the footprint area and throw the exception. BGA QFN QFP S-DIP SOIC Micromatch SMD connectors ZIP ZOIC Circular Pad Array

These work, they draw fine. Touch Slider DemoArc Mutualcap Touch Button BARCODE USS-39 FPC (SMT connector) 2D Barcode QRCode

The exception text is this (paths will vary of course): Traceback (most recent call last): File "/Applications/KiCad/KiCad.app/Contents/Frameworks/ Python.framework/Versions/3.9/lib/python3.9/site-packages/pcbnew.py", line 4917, in GetFootprint self. Build Footprint) File "/Applications/KiCad/KiCad.app/Contents/SharedSupport/scripting/ plugins/FootprintWizardBase.py", line 154, in BuildFootprint self. BuildThisFootprint ( # implementer's build function File "/Applications/KiCad/KiCad.app/Contents/SharedSupport/scripting/ plugins/bga_wizard.py", line 88, in BuildThisFootprint array.AddPadsToModule(self.draw) File "/Applications/KiCad/KiCad.app/Contents/SharedSupport/scripting/ plugins/PadArray.py", line 274, in AddPadsToModule pad = self.GetPad(× == 0 and y == 0, pos) File "/Applications/KiCad/KiCad.app/Contents/SharedSupport/scripting/ plugins/PadArray.py", line 178, in GetPad pad.SetPos0(pos) AttributeError: 'BOARD_ITEM' object has no attribute 'SetPos0'

Steps to reproduce

  1. Open a project. The PIC programmer demo project is a fine one.
  2. Open the footprint editor.
  3. Create a new footprint (empty). Or select one of your own you already have.
  4. Select the library in the list on the left and then press the button with the red star to make a new footprint.
  5. When it asks you which footprint wizard to use select S-DIP (or BGA, it's quicker, it's at the top of the list).
  6. A window will come up and tell you that there is a Python3 exception.
  7. Also nothing will draw in the footprint area of the window.
  8. If you edit any parameters it will still not draw and it will give the error message again.
  9. Selecting "update python modules" before selecting S-DIP does not fix the problem.

KiCad Version

Application: KiCad Footprint Editor arm64 on arm64

Version: 7.0.2-0, release build

Libraries:
	wxWidgets 3.2.2
	FreeType 2.12.1
	HarfBuzz 5.3.1
	FontConfig 2.14.0
	libcurl/7.87.0 SecureTransport (LibreSSL/3.3.6) zlib/1.2.11 nghttp2/1.51.0

Platform: macOS Ventura Version 13.3.1 (a) (Build 22E772610a), 64 bit, Little endian, wxMac

Build Info:
	Date: Apr 17 2023 07:41:02
	wxWidgets: 3.2.2 (wchar_t,wx containers)
	Boost: 1.80.0
	OCC: 7.6.3
	Curl: 7.77.0
	ngspice: 38
	Compiler: Clang 13.0.0 with C++ ABI 1002

Build settings:
	KICAD_SPICE=ON

It also happens on a Windows 11 PC I just put KiCAD on right now to try because I couldn't believe this was failing for anyone else. Especially since someone just a few days ago was quibbling about mere small refinements in 7.0.2.

But as far as I can tell it doesn't work on 7.0.2 anywhere. I did not try Linux or Mac x64 though. Just these two.