#3838: r74307 breaks GUI: UnicodeDecodeError --------------------+------------------------- Reporter: marisn | Owner: grass-dev@… Type: defect | Status: new Priority: normal | Milestone: Component: wxGUI | Version: svn-trunk Keywords: | CPU: Unspecified Platform: Linux | --------------------+------------------------- Any attempts to run some GUI parts result in a partial or complete failure with CLI filling with UnicodeDecodeError messages. r74306 is fine, r74307 breaks everything.
GRASS GIS 7.7.svn (r74442M) locale: lv_LV.UTF-8 Python: 2.7.15 dev-python/wxpython-3.0.2.0:3.0 x11-libs/wxGTK-3.0.4-r1:3.0 Startup screen: {{{ Startē GRASS GIS... /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: UserWarning: wxPython/wxWidgets release number mismatch warnings.warn("wxPython/wxWidgets release number mismatch") Traceback (most recent call last): File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 545, in DoGetBestSize self._updateLabel() File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 565, in _updateLabel GenStaticText.SetLabel(self, newLabel) File "/usr/lib64/python2.7/site- packages/wx-3.0-gtk2/wx/lib/stattext.py", line 58, in SetLabel wx.PyControl.SetLabel(self, label) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 9207, in SetLabel return _core_.Window_SetLabel(*args, **kwargs) File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xc4 in position 27: invalid continuation byte Traceback (most recent call last): File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 545, in DoGetBestSize self._updateLabel() File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 565, in _updateLabel GenStaticText.SetLabel(self, newLabel) File "/usr/lib64/python2.7/site- packages/wx-3.0-gtk2/wx/lib/stattext.py", line 58, in SetLabel wx.PyControl.SetLabel(self, label) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 9207, in SetLabel return _core_.Window_SetLabel(*args, **kwargs) File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xc5 in position 7: invalid continuation byte Traceback (most recent call last): File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 556, in OnSize self._updateLabel() File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 565, in _updateLabel GenStaticText.SetLabel(self, newLabel) File "/usr/lib64/python2.7/site- packages/wx-3.0-gtk2/wx/lib/stattext.py", line 58, in SetLabel wx.PyControl.SetLabel(self, label) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 9207, in SetLabel return _core_.Window_SetLabel(*args, **kwargs) File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xc5 in position 145: unexpected end of data Traceback (most recent call last): File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 556, in OnSize self._updateLabel() File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 565, in _updateLabel GenStaticText.SetLabel(self, newLabel) File "/usr/lib64/python2.7/site- packages/wx-3.0-gtk2/wx/lib/stattext.py", line 58, in SetLabel wx.PyControl.SetLabel(self, label) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 9207, in SetLabel return _core_.Window_SetLabel(*args, **kwargs) File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xc5 in position 145: unexpected end of data Traceback (most recent call last): File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 556, in OnSize self._updateLabel() File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 565, in _updateLabel GenStaticText.SetLabel(self, newLabel) File "/usr/lib64/python2.7/site- packages/wx-3.0-gtk2/wx/lib/stattext.py", line 58, in SetLabel wx.PyControl.SetLabel(self, label) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 9207, in SetLabel return _core_.Window_SetLabel(*args, **kwargs) File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xc5 in position 145: unexpected end of data Traceback (most recent call last): File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 556, in OnSize self._updateLabel() File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 565, in _updateLabel GenStaticText.SetLabel(self, newLabel) File "/usr/lib64/python2.7/site- packages/wx-3.0-gtk2/wx/lib/stattext.py", line 58, in SetLabel wx.PyControl.SetLabel(self, label) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 9207, in SetLabel return _core_.Window_SetLabel(*args, **kwargs) File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xc5 in position 145: unexpected end of data Traceback (most recent call last): File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 556, in OnSize self._updateLabel() File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 565, in _updateLabel GenStaticText.SetLabel(self, newLabel) File "/usr/lib64/python2.7/site- packages/wx-3.0-gtk2/wx/lib/stattext.py", line 58, in SetLabel wx.PyControl.SetLabel(self, label) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 9207, in SetLabel return _core_.Window_SetLabel(*args, **kwargs) File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xc5 in position 145: unexpected end of data Traceback (most recent call last): File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 556, in OnSize self._updateLabel() File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/widgets.py", line 565, in _updateLabel GenStaticText.SetLabel(self, newLabel) File "/usr/lib64/python2.7/site- packages/wx-3.0-gtk2/wx/lib/stattext.py", line 58, in SetLabel wx.PyControl.SetLabel(self, label) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 9207, in SetLabel return _core_.Window_SetLabel(*args, **kwargs) File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xc5 in position 145: unexpected end of data }}} {{{ Launching <wxpython> GUI in the background, please wait... /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: UserWarning: wxPython/wxWidgets release number mismatch warnings.warn("wxPython/wxWidgets release number mismatch") Traceback (most recent call last): File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/wxgui.py", line 172, in <module> sys.exit(main()) File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/wxgui.py", line 159, in main app = GMApp(workspaceFile) File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/wxgui.py", line 53, in __init__ wx.App.__init__(self, False) File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/wxgui.py", line 106, in OnInit workspace=self.workspaceFile) File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/lmgr/frame.py", line 90, in __init__ self.baseTitle = _("GRASS GIS %s Layer Manager") % grassVersion UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 5: ordinal not in range(128) }}} {{{ g.region /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: UserWarning: wxPython/wxWidgets release number mismatch warnings.warn("wxPython/wxWidgets release number mismatch") /home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/forms.py:994: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if content in sections: /home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/forms.py:995: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal idx = sections.index(content) Traceback (most recent call last): File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/gselect.py", line 448, in OnPopup self.GetElementList(selected, exclude) File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/gselect.py", line 460, in GetElementList self._getElementList(self.type, self.mapsets, elements, exclude) File "/home/maris/soft/grass_trunk/dist.x86_64-pc-linux- gnu/gui/wxpython/gui_core/gselect.py", line 544, in _getElementList _('Mapset') + ': ' + mapset, node=True, mapset=mapset) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 3: ordinal not in range(128) }}} -- Ticket URL: <https://trac.osgeo.org/grass/ticket/3838> GRASS GIS <https://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev