[GRASS-dev] no icons in the first toolbar Grass 8.2.2

Lizardo Reyna farliz at disroot.org
Mon Apr 10 14:43:41 PDT 2023


It works! thank you Anna.

Regards


On 4/10/23 10:02, Anna Petrášová wrote:
> Using pip you should be able to install newest wxPython:
>
> pip install -U -f 
> https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04 
> wxPython
>
> On Sun, Apr 9, 2023 at 9:15 PM Lizardo Reyna via grass-dev 
> <grass-dev at lists.osgeo.org> wrote:
>
>     Thanks Markus,
>
>     I'll try to install the patches to solve the problem. Then, I'll
>     comment.
>
>     Regards
>
>     Lizardo
>
>
>     On 2023-04-09 14:31, Markus Neteler wrote:
>
>>     Hi Lizardo,
>>
>>
>>     On Sun, Apr 9, 2023 at 5:10 PM Lizardo Reyna via grass-dev
>>     <grass-dev at lists.osgeo.org> wrote:
>>>
>>>     Hi,
>>>
>>>     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:
>>>
>>>     Traceback (most recent call last):
>>>       File "/usr/lib/python3/dist-
>>>     packages/wx/lib/agw/aui/auibar.py", line 3510, in OnPaint
>>>
>>>     self._art.DrawButton(dc, self, item, item_rect)
>>>       File "/usr/lib/python3/dist-
>>>     packages/wx/lib/agw/aui/auibar.py", line 1008, in DrawButton
>>>
>>>     bmp_rect, text_rect = self.GetToolsPosition(dc, item, rect)
>>>       File "/usr/lib/python3/dist-
>>>     packages/wx/lib/agw/aui/auibar.py", line 1508, in
>>>     GetToolsPosition
>>>
>>>     bmp_rect = wx.Rect(bmp_x, bmp_y, bmp_width, bmp_height)
>>>     TypeError
>>>     :
>>>     Rect(): arguments did not match any overloaded call:
>>>       overload 1: too many arguments
>>>       overload 2: argument 1 has unexpected type 'float'
>>>       overload 3: argument 1 has unexpected type 'float'
>>>       overload 4: argument 1 has unexpected type 'float'
>>>       overload 5: argument 1 has unexpected type 'float'
>>>       overload 6: argument 1 has unexpected type 'float'
>>>     Traceback (most recent call last):
>>>       File "/usr/lib/python3/dist-
>>>     packages/wx/lib/agw/aui/auibar.py", line 3510, in OnPaint
>>     [...]
>>
>>     You are hit by a bug in Ubuntu's wxpython4 package. Unlike e.g.
>>     Fedora
>>     they didn't add missing backports of float -> integer fixes.
>>
>>     It was also discussed here:
>>     https://github.com/OSGeo/grass/issues/2019
>>     https://github.com/OSGeo/grass/issues/2078
>>
>>     We had the same in OSGeoLive, I have created a report with bugfixes
>>     for Ubuntu here:
>>
>>     https://bugs.launchpad.net/ubuntu/+source/wxpython4.0/+bug/2012205
>>
>>     These options I see:
>>     - you install the patches offered in the bug report (not too
>>     difficult
>>     but needs a bit of knowledge how to use `patch`)
>>     - convince the Ubuntu packagers of wxpython4 to fix the bug using the
>>     provided patch
>>     - you try to install a more recent wxpython4 version.
>>
>>     Best,
>>     Markus
>>
>>>     --
>>>     Lizardo Reyna, PhD
>>>     Universidad Técnica de Manabí
>>>     [Address] Lodana, Manabí, Ecuador | [Mobile]  +593  982924637
>>>     PGP Key: 0xa35a15b90ee64e8d
>
>
>     -- 
>     --
>     Lizardo Reyna, PhD
>     Universidad Técnica de Manabí
>     [Address] Lodana, Manabí, Ecuador | [Mobile]  +593  982924637
>     PGP Key: 0xa35a15b90ee64e8d
>     _______________________________________________
>     grass-dev mailing list
>     grass-dev at lists.osgeo.org
>     https://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20230410/72377a39/attachment.htm>


More information about the grass-dev mailing list