Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 902205

Summary: dev-python/wxpython-4.0.7-r4: Does not work with Python 3.10
Product: Gentoo Linux Reporter: Zoltan Puskas <zoltan>
Component: Current packagesAssignee: Gentoo wxWidgets project <wxwidgets>
Status: CONFIRMED ---    
Severity: normal CC: jospezial, python, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---

Description Zoltan Puskas 2023-03-19 22:42:48 UTC
dev-python/wxpython-4.0.7-r4 is marked as being compatible with both Python 3.9 and 3.10, however in reality it still does not work with 3.10. This is problematic since both dev-python/wxpython-4.0.7-r4 and Python 3.10 are marked as stable. This also breaks packages that use wxpython (e.g. Kicad-6 series).

The example code below snippet is from and it still fails.

Reproducible: Always

Steps to Reproduce:
Steps to Reproduce:
1. emerge -1 "=dev-python/wxpython-4.0.7-r4"
2. emerge python:3.10
3. Run the following code:

import wx
from import crust
app = wx.App(redirect=False)
frame = wx.Frame(parent=None, id=wx.ID_ANY, title='Hello World')
crust_ = crust.Crust(parent=frame, intro="Hello")

Actual Results:  
Get the following trace:

Traceback (most recent call last):
  File "/home/alex/tmp/", line 5, in <module>
    crust_ = crust.Crust(parent=frame, intro="Hello")
  File "/usr/lib/python3.10/site-packages/wx/py/", line 43, in __init__ = Shell(parent=self, introText=intro,
  File "/usr/lib/python3.10/site-packages/wx/py/", line 332, in __init__
    self.Bind(wx.EVT_MENU, lambda evt: self.CopyWithPrompts(), id=frame.ID_COPY_PLUS)
  File "/usr/lib/python3.10/site-packages/wx/", line 1406, in _EvtHandler_Bind
    event.Bind(self, id, id2, handler)
  File "/usr/lib/python3.10/site-packages/wx/", line 1477, in Bind
    target.Connect(id1, id2, et, function)
TypeError: EvtHandler.Connect(): argument 1 has unexpected type 'WindowIDRef'

Expected Results:  
Show a window with some sort of python command line thingy.

Change wxpython-4.0.7* python_compat to:
PYTHON_COMPAT=( python3_9 )
Comment 1 jospezial 2024-02-05 22:50:55 UTC
wxpython-4.0.7 is gone from the tree.
Please close.