[GRASS-dev] [GRASS GIS] #3790: Cleanup gettext usage for python code
GRASS GIS
trac at osgeo.org
Tue May 7 06:58:44 PDT 2019
#3790: Cleanup gettext usage for python code
--------------------------+-------------------------
Reporter: pmav99 | Owner: grass-dev@…
Type: enhancement | Status: reopened
Priority: normal | Milestone: 7.8.0
Component: Python | Version: svn-trunk
Resolution: | Keywords:
CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Comment (by neteler):
Here, how to see the (or one of the) errors easily:
{{{
GRASS 7.7.svn (nc_spm_08_grass7):~ > d.mon wx0
GRASS 7.7.svn (nc_spm_08_grass7):~ > Traceback (most recent call last):
File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-
gnu/gui/wxpython/mapdisp/main.py", line 47, in <module>
from core.render import Map, MapLayer, Overlay, RenderMapMgr
File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-
gnu/gui/wxpython/core/render.py", line 42, in <module>
from core.ws import RenderWMSMgr
File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-
gnu/gui/wxpython/core/ws.py", line 33, in <module>
from core.gthread import gThread
File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-
gnu/gui/wxpython/core/gthread.py", line 28, in <module>
from core.gconsole import EVT_CMD_DONE, wxCmdDone
File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-
gnu/gui/wxpython/core/gconsole.py", line 49, in <module>
from gui_core.forms import GUI
File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-
gnu/gui/wxpython/gui_core/forms.py", line 98, in <module>
from gui_core.widgets import StaticWrapText, ScrolledPanel,
ColorTablesComboBox, \
File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-
gnu/gui/wxpython/gui_core/widgets.py", line 90, in <module>
from core.utils import _
ImportError: cannot import name '_' from 'core.utils'
(/home/mneteler/software/grass77/dist.x86_64-pc-linux-
gnu/gui/wxpython/core/utils.py)
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3790#comment:7>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list