python console fails to open with wxWidgets 3.1
Description
on pcbnew built with wxWidgets 3.1, opening the python console fails
traceback
Traceback (most recent call last):
File "<string>", line 5, in <module>
File "/nix/store/6b784pdg7i6kbay4ssn2yws0xwjgvs48-kicad-base-2020-05-13/share/kicad/scripting/kicad_pyshell/__init__.py", line 230, in makePcbnewShellWindow
pyshell = PcbnewPyShell(parent, id=-1, title=INTRO)
File "/nix/store/04pj8vxcmm0lvdbvrf9kndd5zii06n6c-python3.7-wxPython-4.0.7.post2/lib/python3.7/site-packages/wx/py/editor.py", line 266, in __init__
size, style, filename)
File "/nix/store/04pj8vxcmm0lvdbvrf9kndd5zii06n6c-python3.7-wxPython-4.0.7.post2/lib/python3.7/site-packages/wx/py/editor.py", line 29, in __init__
frame.Frame.__init__(self, parent, id, title, pos, size, style)
File "/nix/store/04pj8vxcmm0lvdbvrf9kndd5zii06n6c-python3.7-wxPython-4.0.7.post2/lib/python3.7/site-packages/wx/py/frame.py", line 69, in __init__
wx.Frame.__init__(self, parent, id, title, pos, size, style)
wx._core.PyNoAppError: The wx.App object must be created first!
Steps to reproduce
- build kicad with wxWidgets 3.1
- attempt to open the scripting console in pcbnew
KiCad Version
Application: Pcbnew
Version: 5.99.0-960ce4aa6-1, release build
Libraries:
wxWidgets 3.1.2
libcurl/7.69.1 OpenSSL/1.1.1g zlib/1.2.11 libssh2/1.9.0 nghttp2/1.40.0
Platform: Linux 5.7.0-rc2 x86_64, 64 bit, Little endian, wxGTK
Build Info:
Build date: Jan 1 1970 00:00:01
wxWidgets: 3.1.2 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.69.0
OpenCASCADE Technology: 7.3.0
Curl: 7.69.1
Compiler: GCC 9.3.0 with C++ ABI 1013
Build settings:
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=OFF
KICAD_USE_OCC=ON
KICAD_SPICE=ON
Note
I'll attempt to recreate this with wxWidgets 3.1.3 though it seems unlikely that that'll fix this, and i may not be able to get that working