[GRASS-git] [OSGeo/grass] f5cd4f: wxGUI: Add the matplotlib hint as an exception not...

Vaclav Petras noreply at github.com
Tue Jul 14 07:30:19 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: f5cd4fab795fdb47be00ef64b25c852dfbc48c60
      https://github.com/OSGeo/grass/commit/f5cd4fab795fdb47be00ef64b25c852dfbc48c60
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2026-07-14 (Tue, 14 Jul 2026)

  Changed paths:
    M gui/wxpython/iscatt/plots.py
    M gui/wxpython/timeline/frame.py
    M gui/wxpython/tplot/frame.py

  Log Message:
  -----------
  wxGUI: Add the matplotlib hint as an exception note (#7688)

The Scatterplot, Timeline, and Temporal Plot tools raised a new ImportError
with the hint as its message, so the message of the original error, which
says which module is actually missing, was replaced by the hint.

Add the hint as a note to the original error instead. From the Python
documentation of BaseException.add_note(): Add the string note to the
exception's notes which appear in the standard traceback after the exception
string. The traceback then shows both the missing module and the hint.

The consumer code (various places) shows always its own message, so the
not, not the original message is not used. These changes do not change that.  

Exception notes need Python 3.11, which is now the minimum version.



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list