FS#70922 - Scripting in Pcbnew broken due to python-wxpython issue (temporary workaround)
Attached to Project:
Community Packages
Opened by Ilya (EvilMav) - Monday, 17 May 2021, 19:19 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 08 June 2021, 05:28 GMT
Opened by Ilya (EvilMav) - Monday, 17 May 2021, 19:19 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 08 June 2021, 05:28 GMT
|
Details
Description:
Pcbnew scripting console and external plugins fail with: ``` Traceback (most recent call last): File "<string>", line 5, in <module> File "/usr/share/kicad/scripting/kicad_pyshell/__init__.py", line 230, in makePcbnewShellWindow pyshell = PcbnewPyShell(parent, id=-1, title=INTRO) File "/usr/lib/python3.9/site-packages/wx/py/editor.py", line 265, in __init__ EditorFrame.__init__(self, parent, id, title, pos, File "/usr/lib/python3.9/site-packages/wx/py/editor.py", line 29, in __init__ frame.Frame.__init__(self, parent, id, title, pos, size, style) File "/usr/lib/python3.9/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! ``` This is due to issue with python-wxpython 4.1.1-1 incompatibility with wxWidgets-3.0.5 still in the repos. See bug https://bugs.archlinux.org/task/70908. As a workaround, downgrade to python-wxpython 4.0.7.2-5 fixes the kicad issue. (Crosspost to make it findable for kicad users struggling as I did) |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Tuesday, 08 June 2021, 05:28 GMT
Reason for closing: Fixed
Additional comments about closing: Package was just downgraded to 4.0.7.
Tuesday, 08 June 2021, 05:28 GMT
Reason for closing: Fixed
Additional comments about closing: Package was just downgraded to 4.0.7.