FS#70908 - python-wxpython built against wxWidgets-3.1.5?
Attached to Project:
Community Packages
Opened by Oliver Meier (h2obrain) - Sunday, 16 May 2021, 16:30 GMT
Last edited by Felix Yan (felixonmars) - Sunday, 06 June 2021, 13:49 GMT
Opened by Oliver Meier (h2obrain) - Sunday, 16 May 2021, 16:30 GMT
Last edited by Felix Yan (felixonmars) - Sunday, 06 June 2021, 13:49 GMT
|
Details
Description:
wxPython reports it is built against wxWidgets-3.1.5 instead of the stable wxWidgets-3.0.5. I noticed that, because kicat-git from aur would not build. Additional info: - Package version: python-wxpython-4.1.1-1 Steps to reproduce: ``` Python 3.9.5 (default, May 12 2021, 17:14:51) [GCC 10.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import wx >>> wx.wxWidgets_version 'wxWidgets 3.1.5' ``` |
This task depends upon
Closed by Felix Yan (felixonmars)
Sunday, 06 June 2021, 13:49 GMT
Reason for closing: Fixed
Additional comments about closing: python-wxpython 1:4.0.7.2-1
Sunday, 06 June 2021, 13:49 GMT
Reason for closing: Fixed
Additional comments about closing: python-wxpython 1:4.0.7.2-1
Just overwriting the wxWidgets_version in `site-packages/wx/__init__.py` worked for me to build KiCAD.
https://aur.archlinux.org/packages/kicad-git/#comment-807993
```
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!
```
> New development happens on 3.1 branch. The latest version is 3.1.5, released on April 14, 2021 and we plan to release one last 3.1.6 release in 3.1.x series in a couple of months with 3.2.0 hopefully following around September 2021.
Users that need the latest wxpython should probably fetch it from aur or elsewhere instead.
Agree that the solution is to either build with system wx, or downgrade.
Adding back --use_syswx to the 4.1.1-1 PKGBUILD does not work, because as has been pointed out as of 4.1.0 wxPython depends on wxWidgets 3.1.x (see release notes: https://www.wxpython.org/news/2020-04-24-wxpython-410-release/index.html)