Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nilason opened this issue Dec 10, 2024 · 1 comment
Open

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

nilason opened this issue Dec 10, 2024 · 1 comment
Labels
bug Something isn't working GUI wxGUI related
Milestone

Comments

@nilason
Copy link
Contributor

nilason commented Dec 10, 2024

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
@nilason nilason added bug Something isn't working GUI wxGUI related labels Dec 10, 2024
@nilason nilason added this to the 8.5.0 milestone Dec 10, 2024
@echoix
Copy link
Member

echoix commented Dec 10, 2024

I thought it was something only on windows, due to the line ending handling that doubled them. Seems like there is more to this problem as I thought

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GUI wxGUI related
Projects
None yet
Development

No branches or pull requests

2 participants