Skip to content

[Bug] Extraneous lines in traceback log in Python Panel #4826

Description

@nilason

Describe the bug

In case of Python error the traceback log is presented in the Pyton Panel with extraneous lines (empty or with a caret), causing the interpretation of the message difficult, or–worse–the actual error may be overlooked.

Traceback (most recent call last):
  File "/dev/grass/dist.aarch64-apple-
darwin23.6.0/gui/wxpython/lmgr/layertree.py", line 1130, in
OnHistogram

win = HistogramPlotFrame(










^
^
^
^
^
^
^
^
^
^
^
^
^
^
^
^
^
^
^
  File "/dev/grass/dist.aarch64-apple-
darwin23.6.0/gui/wxpython/wxplot/histogram.py", line 44, in
__init__

BasePlotFrame.__init__(self, parent, giface=giface,
size=size, **kwargs)
  File "/dev/grass/dist.aarch64-apple-
darwin23.6.0/gui/wxpython/wxplot/base.py", line 113, in
__init__

self._createColorDict()
  File "/dev/grass/dist.aarch64-apple-
darwin23.6.0/gui/wxpython/wxplot/base.py", line 120, in
_createColorDict

for clr in gs.named_colors.keys():















^
^
^
^
^
^
^
^
^
^
^
^
^
^
^
AttributeError
:
module 'grass.script' has no attribute 'named_colors'

System description

  • Operating System: all

  • GRASS GIS version: 8.5 dev

  • details about further software components

    • version=8.5.0dev
    • date=2024
    • revision=e78613a834
    • build_date=2024-12-09
    • build_platform=aarch64-apple-darwin23.6.0
    • build_off_t_size=8
    • libgis_revision=5c1ea4afc6
    • libgis_date=2024-11-29T10:01:48+00:00
    • proj=9.5.1
    • gdal=3.10.0
    • geos=3.12.2
    • sqlite=3.47.2
    • Python 3.12.8 (main, Dec 7 2024, 10:11:37) [Clang 15.0.0 (clang-1500.3.9.4)]
    • wxPython 4.2.2 osx-cocoa (phoenix) wxWidgets 3.2.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUIwxGUI relatedbugSomething isn't working

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions