Dear Mauricio,
Thank you for the link !
Regards,
Frank

Le 02/01/2023 à 18:52, Maurício Vancine a écrit :
Dear Frank,

I had the same problem and I solved it following this:

https://github.com/OSGeo/grass/issues/2690

Best,


Em seg., 2 de jan. de 2023 às 14:32, Micha Silver <tsvi...@gmail.com> escreveu:

    I checked on my Debian 11 with KDE desktop. Recompiled 8.2 from
    git. No problem here.


    On 02/01/2023 16:53, Frank David wrote:

    Hello,

    I've installed GRASS 8.2.0 in a fresh KDE UBUNTU 22.04  and the
    GUI crash if the single window gui is enabled. As soon as I turn
    off this choice in .grass8/wx.json file the GUI works.

    console error message :

    /usr/lib/grass82/scripts/g.extension:167: DeprecationWarning: The
    distutils package is deprecated and slated for removal in Python
    3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.dir_util import copy_tree
    Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/wx/core.py", line 3282, in
    <lambda>
    lambda event: event.callable(*event.args, **event.kw
    <http://event.kw>) )
    File "/usr/lib/grass82/gui/wxpython/wxgui.py", line 95, in
    show_main_gui
    mainframe = GMFrame(parent=None, id=wx.ID_ANY,
    workspace=self.workspaceFile)
    File "/usr/lib/grass82/gui/wxpython/main_window/frame.py", line
    164, in __init__
    self.BuildPanes()
    File "/usr/lib/grass82/gui/wxpython/main_window/frame.py", line
    645, in BuildPanes
    self._auimgr.AddPane(
    File
    "/usr/lib/python3/dist-packages/wx/lib/agw/aui/framemanager.py",
    line 4711, in AddPane
    return self.AddPane4(window, arg1, target)
    File
    "/usr/lib/python3/dist-packages/wx/lib/agw/aui/framemanager.py",
    line 4879, in AddPane4
    self.UpdateNotebook()
    File
    "/usr/lib/python3/dist-packages/wx/lib/agw/aui/framemanager.py",
    line 6653, in UpdateNotebook
    notebook.AddPage(pane.window, title, True, pane.icon)
    File "/usr/lib/python3/dist-packages/wx/lib/agw/aui/auibook.py",
    line 3575, in AddPage
    return self.InsertPage(self.GetPageCount(), page, caption,
    select, bitmap, disabled_bitmap, control, tooltip)
    File "/usr/lib/python3/dist-packages/wx/lib/agw/aui/auibook.py",
    line 3653, in InsertPage
    self.SetSelectionToWindow(page)
    File "/usr/lib/python3/dist-packages/wx/lib/agw/aui/auibook.py",
    line 4410, in SetSelectionToWindow
    self.SetSelection(idx)
    File "/usr/lib/python3/dist-packages/wx/lib/agw/aui/auibook.py",
    line 4357, in SetSelection
    ctrl.MakeTabVisible(ctrl_idx, ctrl)
    File "/usr/lib/python3/dist-packages/wx/lib/agw/aui/auibook.py",
    line 1843, in MakeTabVisible
    if not self.IsTabVisible(tabPage, self.GetTabOffset(), dc, win):
    File "/usr/lib/python3/dist-packages/wx/lib/agw/aui/auibook.py",
    line 1732, in IsTabVisible
    self.Render(dc, wnd)
    File "/usr/lib/python3/dist-packages/wx/lib/agw/aui/auibook.py",
    line 1687, in Render
    page.rect, tab_button.rect, x_extent = self._art.DrawTab(dc, wnd,
    page, rect, tab_button.cur_state)
    File "/usr/lib/python3/dist-packages/wx/lib/agw/aui/tabart.py",
    line 475, in DrawTab
    r.SetHeight(r.GetHeight()/2)
    TypeError: Rect.SetHeight(): argument 1 has unexpected type 'float'

    Is there a way to solve this ?

    Thank you for the trick.

    Regards,

    Frank


    _______________________________________________
    grass-user mailing list
    grass-user@lists.osgeo.org
    https://lists.osgeo.org/mailman/listinfo/grass-user

-- Micha Silver
    Ben Gurion Univ.
    Sde Boker, Remote Sensing Lab
    cell: +972-523-665918

    _______________________________________________
    grass-user mailing list
    grass-user@lists.osgeo.org
    https://lists.osgeo.org/mailman/listinfo/grass-user



--
*Maurício Vancine*
Doutorando em Ecologia, Evolução e Biodiversidade
Mestre em Zoologia
Ecólogo (ABE n. 2018007)
Universidade Estadual Paulista (UNESP), Rio Claro/SP, Brasil

Site <https://mauriciovancine.github.io/> | Lattes <http://lattes.cnpq.br/9761288418931193> | Google Scholar <https://scholar.google.com/citations?user=i-2xZBQAAAAJ> | ORCID <https://orcid.org/0000-0001-9650-7575>|Publons <https://publons.com/researcher/1391845/mauricio-vancine/> |GitHub <https://github.com/mauriciovancine>

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to