Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 902205 - dev-python/wxpython-4.0.7-r4: Does not work with Python 3.10
Summary: dev-python/wxpython-4.0.7-r4: Does not work with Python 3.10
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-19 22:42 UTC by Zoltan Puskas
Modified: 2024-02-05 22:50 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 https://bugs.gentoo.org/863494 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 wx.py 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")
frame.Show()
app.MainLoop()


Actual Results:  
Get the following trace:

Traceback (most recent call last):
  File "/home/alex/tmp/test_crust.py", line 5, in <module>
    crust_ = crust.Crust(parent=frame, intro="Hello")
  File "/usr/lib/python3.10/site-packages/wx/py/crust.py", line 43, in __init__
    self.shell = Shell(parent=self, introText=intro,
  File "/usr/lib/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/lib/python3.10/site-packages/wx/core.py", line 1406, in _EvtHandler_Bind
    event.Bind(self, id, id2, handler)
  File "/usr/lib/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'


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.