Python argcomplete is broken for Python 3.11
Description
Steps to reproduce
- Open pcbnew scripting editor with Python 3.11
- Type
import pcbnew
b = pcbnew.GetBoard(
At this point, you will receive an error AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
This happens because the inspect module has updated and dropped a deprecated call that is used by wxPython.
This will require monkey-patching something like the following:
import inspect
if not hasattr(inspect, 'getargspec'):
inspect.getargspec = inspect.getfullargspec
KiCad Version
Application: KiCad x86_64 on x86_64
Version: (7.99.0-333-g97920a1ea4), debug build
Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
Platform: Debian GNU/Linux bookworm/sid, 64 bit, Little endian, wxGTK, lightdm-xsession, x11
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.74.0
OCC: 7.6.3
Curl: 7.87.0
ngspice: 38
Compiler: GCC 12.2.0 with C++ ABI 1017
Build settings:
KICAD_SPICE=ON
KICAD_STDLIB_DEBUG=OFF
KICAD_STDLIB_LIGHT_DEBUG=ON
KICAD_SANITIZE_ADDRESS=OFF
KICAD_SANITIZE_THREADS=OFF