Exception on python footprint wizard code {Lunix Ubuntu 20.04}

I saw that this issue came up back in 2018 but it was for a windows machine. I am having a similar issue when i try and run the footprint wizard. using Ubuntu V20.04

Traceback (most recent call last):

file “/usr/lib/python3/dist-packages/pcbnew.py”, line4065, in
GetFootprint()
self.BuildFootprint()

File “/usr/share/kicad/scripting/plugins/FootprintWizardBase.py”,
line 149, in BuildFootprint
self.BuiltThisFootprint() #implementer’s build function

File “/usr/shar/kicad/scripting.plugins.bga_wizard.py”, line 87, in
BuildThisFootprint
array=BGAPadGridArray(pad, cols, rows, pad_pitch, pad_pitch)

File “/usr/share/kicad/scripting/plugins/PadArray.py”, line 215, in
init
super(PadGridArray, self).init(pad)

TypeError: super(type, obj): obj must be and instance or subtype of type

I’m having the same issue on a current Ubuntu 20.04.1 LTS with the KiCad version below.

@paulvdh could you please post a reference to the issue you mentioned?

Application: KiCad
Version: 5.1.9-73d0e3b20d~88~ubuntu20.04.1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Platform: Linux 5.4.0-58-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.71.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.68.0
    Compiler: GCC 9.3.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

By following the links from my post earlier in this tread I get to:

Maybe this needs to be reported to some pagacking guys…
I’m not sure about the details (I’m not much into Python), but my best guess is that Linux needs the patch because it runs the wizards with Python V3, while some other OS needs the unpatched version because it uses Python V2.

Also did a quick check for KiCad-nightly V5.99 but it looks like all of the Footprint wizards are missing (or at least not loaded in KiCad).

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.