-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
[Bug]: wxGUI crash at launch: TypeError: ToolBar.AddTool(): arguments did not match any overloaded call #2019
Comments
See my reply in #1971 (comment), you need newer wx. I just tested gui with Python 3.10 and wxPython 4.1 and it works. |
Well, then I need to tell the wxPython maintainer in Fedora to cherry-pick the needed fix(es). For the time being it will remain wxPython 4.0: https://koji.fedoraproject.org/koji/packageinfo?packageID=26351 However, searching for the error messages above in the internet does not return any result. So I'm a bit lost here... |
I believe it's this one: But in general, there are pretty big changes in 4.1, mainly due to using newer wxWidgets, so I recommend using 4.1 when possible. There are some wheels for (older) fedora here https://extras.wxpython.org/wxPython4/extras/linux/gtk3/. |
(cross-linking a related Fedora ticket here: https://bugzilla.redhat.com/show_bug.cgi?id=1827788) |
The piece of information which is missing in the Fedora ticket is that Fedora has latest Python release (3.10), but has old wxPython release. Either you need old Python and then wxPython 4.0 is fine, or you have Python 3.10, but then you need wxPython 4.1. Notably, the issue is not in how GRASS GIS uses wxPython. |
Actually under Fedora 35 with Python 3.10 version it possible build own wxPython 4.1.1 (whl doesn't exist yet for Python 3.10)
But launch GRASS GIS 7.8.6 (installed from the official repository ) crash during wxGUI initialization (it seem bug related with Python 3.10 version and wxPython 4.1.1, same issue as #1971)
|
Right, it looks like that one was fixed 2 days ago: I backported a change to 7.8, that uses a different widget so the problem doesn't come up. Ultimately we need a new 7.8 release to get it working with Python 3.10. @neteler I suggest closing this |
This is really cool, thanks for having posted the wxPython 4.1.1 installation instructions! |
the build of wxpython don't work. I launch it many time but without result |
The compilation doesn't seem to be successful. Could you provide more information (compilation error message)? |
There is not any compilation. The compilation does not finish. |
I use pip install -U wxpython |
The installation process |
I'm build binary wxPython 4.1.1 whl file (easy installation, which doesn't require compile wxPython from source code) for Python 3.10. Size of binary wxPython-4.1.1-cp310-cp310-linux_x86_64.whl file is 135M. @neteler Where I could upload this binary file for downloading, please?
|
This is cool: https://transfer.sh/ |
Thanks Markus for great tip! |
@danhox I prepare easy wxPython 4.1.1 installation manual (without time-consuming compilation wxPython from source code), check comment above, please. |
Thank you |
GUI in the background, please wait... the installation of wxpython 4.11 in virtual env did not solve the problem |
That's expected, the error was solved in wxPython only a week ago. I backported a workaround to 7.8 branch, but 7.8.7 is not released yet. |
It seems combination wxPython 4.1.1 (self compiled master git branch with last commit) is much more problematic (tested on Gentoo and Fedora 35 distribution). I tried launch GRAS GIS 7.8.7 dev version, and wxGUI start without error, but main window has wrong rendered Notebook widget layout. Screenshot Additional context If I comment out these lines code, I get error message: grass/gui/wxpython/lmgr/frame.py Lines 320 to 402 in f9f30f3
Error mesage:
It seems this wxPython bug wasn't fixed via this PR https://github.com/wxWidgets/Phoenix/pull/2039/files. For testing purpose self compiled wxPython master git branch, here is binary whl file wxPython-4.1.2a1-cp310-cp310-linux_x86_64.whl (for Fedora 35 distribution).
|
Right, we may need to create a PR for wxPython. Unfortunately there is not much we can do on our side. |
I have upgraded my system to F35 today (moved here from #1971) and get a wxGUI crash at launch:
and
Originally posted by @neteler in #1971 (comment)
The text was updated successfully, but these errors were encountered: