Cannot open scripting console on a Fedora 6.0.0-rc build
Description
I am testing the nightly Fedora build, and noticed that if I try to open the Tools->Scripting Console, I get an error message instead of the normal scripting console. Here is the text that appears in a dialog called "wxPython: stdout/stderr":
File "<string>", line 2, in <module>
File "/usr/share/kicad-nightly/scripting/kicad_pyshell/__init__.py", line 253, in makePcbnewShellWindow
return KiCadPyShell(parent)
File "/usr/share/kicad-nightly/scripting/kicad_pyshell/__init__.py", line 39, in __init__
KiCadEditorNotebookFrame.__init__(self, parent)
File "/usr/share/kicad-nightly/scripting/kicad_pyshell/kicad_pyeditor.py", line 939, in __init__
KiCadEditorFrame.__init__(self, parent)
File "/usr/share/kicad-nightly/scripting/kicad_pyshell/kicad_pyeditor.py", line 732, in __init__
self._setup()
File "/usr/share/kicad-nightly/scripting/kicad_pyshell/__init__.py", line 115, in _setup
self.crust = crust.Crust(parent=self.notebook,
File "/usr/lib64/python3.10/site-packages/wx/py/crust.py", line 43, in __init__
self.shell = Shell(parent=self, introText=intro,
File "/usr/lib64/python3.10/site-packages/wx/py/shell.py", line 332, in __init__
self.Bind(wx.EVT_MENU, lambda evt: self.CopyWithPrompts(), id=frame.ID_COPY_PLUS)
File "/usr/lib64/python3.10/site-packages/wx/core.py", line 1406, in _EvtHandler_Bind
event.Bind(self, id, id2, handler)
File "/usr/lib64/python3.10/site-packages/wx/core.py", line 1477, in Bind
target.Connect(id1, id2, et, function)
TypeError: EvtHandler.Connect(): argument 1 has unexpected type 'WindowIDRef'
Also, there is no prompt in the python window. Here is a screenshot of the error:
I get the same error if I run a private 6.0.0-rc1 build.
However, the flatpak build works properly. No error messages, and the python console is usable.
Here is how it looks on the flatpak:
Steps to reproduce
- Start Fedora KiCad nightly
- Attempt to open the scripting console in pcb_new
KiCad Version
Application: KiCad PCB Editor
Version: 6.0.0-rc2-1.20211218gitbd0fbea.fc35, release build
Libraries:
wxWidgets 3.0.5
libcurl/7.79.1 OpenSSL/1.1.1l-fips zlib/1.2.11 brotli/1.0.9 libidn2/2.3.2 libpsl/0.21.1 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.45.1 OpenLDAP/2.4.59
Platform: Linux 5.15.10-200.fc35.x86_64 x86_64, 64 bit, Little endian, wxGTK, KDE, x11
Build Info:
Date: Dec 20 2021 18:15:27
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.76.0
OCC: 7.5.0
Curl: 7.79.1
ngspice: 35
Compiler: GCC 11.2.1 with C++ ABI 1016
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON