<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>It works! thank you Anna.</p>
<p>Regards</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 4/10/23 10:02, Anna Petrášová wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAE0EDErJJJDnLaH08xt+Ct+mB7XTD92fC+1Wd52Lb8qYkaHudg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Using pip you should be able to install newest wxPython:</div>
<div><br>
</div>
pip install -U -f <a
href="https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04"
moz-do-not-send="true" class="moz-txt-link-freetext">https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04</a>
wxPython</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sun, Apr 9, 2023 at 9:15 PM
Lizardo Reyna via grass-dev <<a
href="mailto:grass-dev@lists.osgeo.org"
moz-do-not-send="true" class="moz-txt-link-freetext">grass-dev@lists.osgeo.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div
style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Thanks Markus, </p>
<p>I'll try to install the patches to solve the problem.
Then, I'll comment.</p>
<p>Regards</p>
<p>Lizardo</p>
<p><br>
</p>
<p id="m_5748321704543983203reply-intro">On 2023-04-09
14:31, Markus Neteler wrote:</p>
<blockquote type="cite" style="padding:0px
0.4em;border-left:2px solid rgb(16,16,255);margin:0px">
<div style="margin:0px;padding:0px;font-family:monospace">Hi
Lizardo,<br>
<br>
<br>
On Sun, Apr 9, 2023 at 5:10 PM Lizardo Reyna via
grass-dev<br>
<<a href="mailto:grass-dev@lists.osgeo.org"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">grass-dev@lists.osgeo.org</a>>
wrote:
<blockquote type="cite" style="padding:0px
0.4em;border-left:2px solid rgb(16,16,255);margin:0px"><br>
Hi,<br>
<br>
I've compiled Grass 8.2.2 in ubuntu 22.04 (two times),
the first toolbar do not have icons, only the
description appers. The console shows this:<br>
<br>
Traceback (most recent call last):<br>
File "/usr/lib/python3/dist-<br>
packages/wx/lib/agw/aui/auibar.py", line 3510, in
OnPaint<br>
<br>
self._art.DrawButton(dc, self, item, item_rect)<br>
File "/usr/lib/python3/dist-<br>
packages/wx/lib/agw/aui/auibar.py", line 1008, in
DrawButton<br>
<br>
bmp_rect, text_rect = self.GetToolsPosition(dc, item,
rect)<br>
File "/usr/lib/python3/dist-<br>
packages/wx/lib/agw/aui/auibar.py", line 1508, in<br>
GetToolsPosition<br>
<br>
bmp_rect = wx.Rect(bmp_x, bmp_y, bmp_width,
bmp_height)<br>
TypeError<br>
:<br>
Rect(): arguments did not match any overloaded call:<br>
overload 1: too many arguments<br>
overload 2: argument 1 has unexpected type 'float'<br>
overload 3: argument 1 has unexpected type 'float'<br>
overload 4: argument 1 has unexpected type 'float'<br>
overload 5: argument 1 has unexpected type 'float'<br>
overload 6: argument 1 has unexpected type 'float'<br>
Traceback (most recent call last):<br>
File "/usr/lib/python3/dist-<br>
packages/wx/lib/agw/aui/auibar.py", line 3510, in
OnPaint</blockquote>
[...]<br>
<br>
You are hit by a bug in Ubuntu's wxpython4 package.
Unlike e.g. Fedora<br>
they didn't add missing backports of float -> integer
fixes.<br>
<br>
It was also discussed here:<br>
<a href="https://github.com/OSGeo/grass/issues/2019"
rel="noopener noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/OSGeo/grass/issues/2019</a><br>
<a href="https://github.com/OSGeo/grass/issues/2078"
rel="noopener noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/OSGeo/grass/issues/2078</a><br>
<br>
We had the same in OSGeoLive, I have created a report
with bugfixes<br>
for Ubuntu here:<br>
<br>
<a
href="https://bugs.launchpad.net/ubuntu/+source/wxpython4.0/+bug/2012205"
rel="noopener noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://bugs.launchpad.net/ubuntu/+source/wxpython4.0/+bug/2012205</a><br>
<br>
These options I see:<br>
- you install the patches offered in the bug report (not
too difficult<br>
but needs a bit of knowledge how to use `patch`)<br>
- convince the Ubuntu packagers of wxpython4 to fix the
bug using the<br>
provided patch<br>
- you try to install a more recent wxpython4 version.<br>
<br>
Best,<br>
Markus<br>
<br>
<blockquote type="cite" style="padding:0px
0.4em;border-left:2px solid rgb(16,16,255);margin:0px">--<br>
Lizardo Reyna, PhD<br>
Universidad Técnica de Manabí<br>
[Address] Lodana, Manabí, Ecuador | [Mobile] +593
982924637<br>
PGP Key: 0xa35a15b90ee64e8d</blockquote>
</div>
</blockquote>
<p><br>
</p>
<div id="m_5748321704543983203signature">-- <br>
<div style="margin:0px;padding:0px;font-family:monospace">--<br>
Lizardo Reyna, PhD<br>
Universidad Técnica de Manabí<br>
[Address] Lodana, Manabí, Ecuador | [Mobile] +593
982924637<br>
PGP Key: 0xa35a15b90ee64e8d</div>
</div>
</div>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">grass-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-dev"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</blockquote>
</div>
</blockquote>
</body>
</html>