Python error in new footprint wizard


#1

When launching the new footprint wizard, after selecting a footprint style or editing a parameter, the footprint does not generate, instead giving a popup error with the following:

Exception on python footprint wizard code
Traceback (most recent call last):
File "C:\Program Files\KiCad\lib\python2.7\site-packages\pcbnew.py", line 3866, in GetFootprint
    self.BuildFootprint()

File "C:\Program Files\KiCad\share\kicad\scripting\plugins/FootprintWizardBase.py", line 139, in BuildFootprint
    fpid = pcbnew.LIB_ID(self.module.GetValue()) # the name in library

File "C:\Program Files\KiCad\lib\python2.7\site-packages/pcbnew.py", line 5502, in __init__
    this = _pcbnew.new_LIB_ID(*args)

NotImplementedError: Wrong number or type of arguments for overloaded function 'new_LIB_ID'.
    Possible C/C++ prototypes are:
        LIB_ID::LIB_ID()
        LIB_ID::LIB_ID(wxString const &,wxString const&,wxString const &)
        LIB_ID::LIB_ID(wxString cons &,wxString const &)

As the package I am trying to make is a 40-pin DIP, it’s not practical to work around this error by manually placing all the pads.


#2

I think this is the same as https://bugs.launchpad.net/kicad/+bug/1784475 It is marked as fixed in version 5.1.0 which is not released yet.

If you need to get going quickly then you could edit the file FootprintWizardBase.py with a text editor. Note that you will need to run the editor as admin.


#3

Yep, that did it, thanks!