-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wx/core.py fails to launch on Fedora 40 Python 3.12 #2643
Comments
Are you possibly mixing GTK2 and GTK3 (wxPython) in your app somehow? |
Thanks for the suggestion. I will check it out and post back shortly. |
Python 3.12.7 (main, Oct 1 2024, 00:00:00) [GCC 14.2.1 20240912 (Red Hat 14.2.1-3)] on linux
I am confirming with developers what version the code depends on. If this is the issue, then I suppose I'll need to find a version wxPython that can be built with gtk2. Does that sound right? |
Not necessarily. My question was more about whether you are using other GUI libraries (other than wxPython) in your application. |
The code has been using GTK3 for quite some time (since 2019). Any other possible explanations? |
We use matplotlib among other things. I think I see your point. I will chase down some of our other packages too. Any suggestions in this regard? |
matplotlib is a good suspect. If it's trying to use GTK-2, that could be a problem. |
Operating system: Fedora 40 (6.11.6-200.fc40.x86_64)
wxPython version & source: 4.2.2 via pip Requirement already satisfied: wxpython in /usr/local/lib64/python3.12/site-packages (4.2.2)
Python version & source: Python 3.12.7 from dnf install
Description of the problem:
We are running an application that we've run for sometime with wxPython. When we run the code on our new build, we get the following error when we launch the GUI.
/usr/local/lib64/python3.12/site-packages/wx/core.py:2232: Warning: cannot register existing type 'GdkDisplayManager'
self._BootstrapApp()
/usr/local/lib64/python3.12/site-packages/wx/core.py:2232: Warning: g_once_init_leave_pointer: assertion 'result != 0' failed
self._BootstrapApp()
/usr/local/lib64/python3.12/site-packages/wx/core.py:2232: Warning: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
self._BootstrapApp()
I suspect that this is a configuration error on my part, but I cannot find it.
Any ideas?
Code Example (click to expand)
# Put code sample here
The text was updated successfully, but these errors were encountered: