Hi, I’m using GRASS, a GIS application created using wxPython. Every time I try to load a dataset, I get the following error:
C:\Users\Ishan Buxy>Traceback (most recent call last):
File “C:\Program Files\GRASS GIS 7.8\gui\wxpython\wxgui.py”, line 105, in OnInit
mainframe = GMFrame(parent=None, id=wx.ID_ANY,
File “C:\Program Files\GRASS GIS 7.8\gui\wxpython\lmgr\frame.py”, line 141, in init
self._createMenuBar()
File “C:\Program Files\GRASS GIS 7.8\gui\wxpython\lmgr\frame.py”, line 268, in _createMenuBar
self.menubar = GMenu(
File “C:\Program Files\GRASS GIS 7.8\gui\wxpython\gui_core\menu.py”, line 47, in init
self.Append(self._createMenu(child), child.label)
File “C:\Program Files\GRASS GIS 7.8\gui\wxpython\gui_core\menu.py”, line 61, in _createMenu
self._createMenuItem(menu, label=child.label, **data)
File “C:\Program Files\GRASS GIS 7.8\gui\wxpython\gui_core\menu.py”, line 88, in _createMenuItem
menuItem.SetBitmap(MetaIcon(img=icon).GetBitmap(self.bmpsize))
File “C:\Program Files\GRASS GIS 7.8\gui\wxpython\icons\icon.py”, line 96, in GetBitmap
image = wx.Image(name=self.imagepath)
wx._core.wxAssertionError: C++ assertion “strcmp(setlocale(0, 0), “C”) == 0” failed at D:\src\osgeo4w\src\wxwidgets\wxwidgets-3.1.5-0df1d81acd6f1be8624022f8eecb51679008ca40\src\common\intl.cpp(1694) in wxLocale::GetInfo(): You probably called setlocale() directly instead of using wxLocale and now there is a mismatch between C/C++ and Windows locale.
Things are going to break, please only change locale by creating wxLocale objects to avoid this!
OnInit returned false, exiting…
Does anyone know how to resolve this?