wxpython-4-0-7 is lacking some int() casting fixes - patch provided

Bug #2012205 reported by Markus Neteler
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wxpython4.0 (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Triaged
Medium
Unassigned

Bug Description

GRASS GIS 8.2.1 (maybe others) show `float()` related error messages leading to missing icons etc.

The reason are int() cast fixes missing from the Ubuntu wxpython 4.0.7 package.

I have cherry-picked them from the respective Fedora 4.0.7 package which is more recent (and already tested with GRASS GIS):

https://data.neteler.org/tmp/wxpython_int_fixes3.patch
https://data.neteler.org/tmp/wxpython_int_fixes6.patch

(the demo/ part of the patch may be omitted)

--> see also attachment for a combined file.

Tags: patch
Revision history for this message
Markus Neteler (neteler) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Missing int() cast fixes cherrypicked from respective Fedora package" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Brian Murray (brian-murray) wrote :

Thanks for taking the time to report this bug and include a patch. Looking at the source code for wxpython4.0 I can see that this is fixed in the development release of Ubuntu so I'll be marking this as Fix Released. Ubuntu 22.04 is still affected this so we could consider fixing this in a stable release update, however to do that we'd need to follow the process documented at https://wiki.ubuntu.com/StableReleaseUpdates - primarily having a test case for the bug report and information about where the changes might introduce a regression. I'll subscribe to the bug report and would be happy to upload the changes necessary to Ubuntu to fix this provided you take care of updating the bug report so it is suitable for SRU'ing. Thanks!

Changed in wxpython4.0 (Ubuntu):
status: New → Fix Released
Revision history for this message
Markus Neteler (neteler) wrote :

Brian, Fully understood.

Since it is a GUI regression, I can only provide a "do this, click there" description for reproducing the issue. Would that be ok?

Revision history for this message
Markus Neteler (neteler) wrote :

Here a command line trigger of the error, when lacking the patch:

grass --tmp-location XY --exec g.gui
GRASS_INFO_ERROR(97520,1): Rect.SetHeight(): argument 1 has unexpected type 'float'
GRASS_INFO_END(97520,1)

Applying the attached path solved it.

Changed in wxpython4.0 (Ubuntu Jammy):
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.