Whenever I try to open python scripting console in kicad 6 it gives error.
The error I am getting only in ubuntu, not in windows.
Any idea?
File “/usr/lib/python3/dist-packages/wx/core.py”, line 3185, in CallAfter
assert app is not None, ‘No wx.App created yet’
AssertionError: No wx.App created yet
I am having the same issue. I am using Ubuntu 18.04 and have tried the repo and compiling from source – same error.
Full error in pop up wxPythong stdout/stderr window:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "/usr/local/share/kicad/scripting/kicad_pyshell/__init__.py", line 253, in makePcbnewShellWindow
return KiCadPyShell(parent)
File "/usr/local/share/kicad/scripting/kicad_pyshell/__init__.py", line 39, in __init__
KiCadEditorNotebookFrame.__init__(self, parent)
File "/usr/local/share/kicad/scripting/kicad_pyshell/kicad_pyeditor.py", line 939, in __init__
KiCadEditorFrame.__init__(self, parent)
File "/usr/local/share/kicad/scripting/kicad_pyshell/kicad_pyeditor.py", line 732, in __init__
self._setup()
File "/usr/local/share/kicad/scripting/kicad_pyshell/__init__.py", line 119, in _setup
execStartupScript=self.execStartupScript)
File "/usr/lib/python3/dist-packages/wx/py/crust.py", line 47, in __init__
*args, **kwds)
File "/usr/lib/python3/dist-packages/wx/py/shell.py", line 347, in __init__
wx.CallAfter(self.ScrollToLine, 0)
File "/usr/lib/python3/dist-packages/wx/core.py", line 3185, in CallAfter
assert app is not None, 'No wx.App created yet'
AssertionError: No wx.App created yet
I thought it was a problem with my distro’s package because I saw it uses Python 3.10 but the pcbnew’s python module inside the package was in Python 3.9’s directory, however, I removed it and compiled my own KiCad and the problem still persisted for me, so I opened a bug report: