[osgeo4w-dev] [osgeo4w] #749: Launch Grass GUI problem
OSGeo4W
trac_osgeo4w at osgeo.org
Tue Jun 21 12:59:30 PDT 2022
#749: Launch Grass GUI problem
-------------------------------------------------+-------------------------
Reporter: migtab | Owner: osgeo4w-
| dev@…
Type: defect | Status: new
Priority: major | Component: Package
Version: | Resolution:
Keywords: Grass GUI, Launch, setlocale, |
wxLocale |
-------------------------------------------------+-------------------------
Description changed by migtab:
Old description:
> I cant launch Grass GUI.
> Console message:
>
> "Iniciando GRASS GIS...
> ADVERTENCIA: El bloqueo simultáneo de Directorio de mapas no está
> soportado
> en Windows
> Limpiando archivos temporales...
>
> __________ ___ __________ _______________
> / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
> / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
> / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
> \____/_/ |_/_/ |_/____/____/ \____/___//____/
>
> Bienvenido a GRASS GIS 7.8.7
> Página web de GRASS GIS: https://grass.osgeo.org
> Esta versión corriendo a través de: Command Prompt
> (C:\Windows\system32\cmd.exe)
> La ayuda está disponible con el comando: g.manual -i
> Vea los términos de la licencia con: g.version -c
> Leer opciones para citar con: g.version -x
> Si lo necesita, reinicie la GUI con: g.gui wxpython
> En cuanto esté listo para salir escriba: exit
>
> Lanzando GUI <wxpython> en el fondo, por favor espere...
> Microsoft Windows [Versión 10.0.19043.1766]
> (c) Microsoft Corporation. Todos los derechos reservados.
>
> D:\mfts-\Documentos>Traceback (most recent call last):
> File "C:\OSGeo4W\apps\Python39\lib\site-packages\wx\core.py", line
> 3407, in <lambda>
> lambda event: event.callable(*event.args, **event.kw) )
> File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\wxgui.py", line 83, in
> show_main_gui
> mainframe = GMFrame(parent=None, id=wx.ID_ANY,
> workspace=self.workspaceFile)
> File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\lmgr\frame.py", line
> 141, in __init__
> self._createMenuBar()
> File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\lmgr\frame.py", line
> 268, in _createMenuBar
> self.menubar = GMenu(
> File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\gui_core\menu.py",
> line 47, in __init__
> self.Append(self._createMenu(child), child.label)
> File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\gui_core\menu.py",
> line 61, in _createMenu
> self._createMenuItem(menu, label=child.label, **data)
> File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\gui_core\menu.py",
> line 88, in _createMenuItem
> menuItem.SetBitmap(MetaIcon(img=icon).GetBitmap(self.bmpsize))
> File "C:\OSGeo4W\apps\grass\grass78\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!"
>
> My OS is Windows 10 64bits
> The Grass installation was made with OSGeo4w
> The Grass v is 7.8.7
> I tried reinstalling Grass but still dont work
> Also i tried installing other grass versions but they don't work either
New description:
I cant launch Grass GUI.
Console message:
"Iniciando GRASS GIS...
ADVERTENCIA: El bloqueo simultáneo de Directorio de mapas no está
soportado
en Windows
Limpiando archivos temporales...
__________ ___ __________ _______________
/ ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
/ / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
/ /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
\____/_/ |_/_/ |_/____/____/ \____/___//____/
Bienvenido a GRASS GIS 7.8.7
Página web de GRASS GIS: https://grass.osgeo.org
Esta versión corriendo a través de: Command Prompt
(C:\Windows\system32\cmd.exe)
La ayuda está disponible con el comando: g.manual -i
Vea los términos de la licencia con: g.version -c
Leer opciones para citar con: g.version -x
Si lo necesita, reinicie la GUI con: g.gui wxpython
En cuanto esté listo para salir escriba: exit
Lanzando GUI <wxpython> en el fondo, por favor espere...
Microsoft Windows [Versión 10.0.19043.1766]
(c) Microsoft Corporation. Todos los derechos reservados.
D:\mfts-\Documentos>Traceback (most recent call last):
File "C:\OSGeo4W\apps\Python39\lib\site-packages\wx\core.py", line 3407,
in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\wxgui.py", line 83, in
show_main_gui
mainframe = GMFrame(parent=None, id=wx.ID_ANY,
workspace=self.workspaceFile)
File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\lmgr\frame.py", line
141, in __init__
self._createMenuBar()
File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\lmgr\frame.py", line
268, in _createMenuBar
self.menubar = GMenu(
File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\gui_core\menu.py", line
47, in __init__
self.Append(self._createMenu(child), child.label)
File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\gui_core\menu.py", line
61, in _createMenu
self._createMenuItem(menu, label=child.label, **data)
File "C:\OSGeo4W\apps\grass\grass78\gui\wxpython\gui_core\menu.py", line
88, in _createMenuItem
menuItem.SetBitmap(MetaIcon(img=icon).GetBitmap(self.bmpsize))
File "C:\OSGeo4W\apps\grass\grass78\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!"
My OS is Windows 10 64bits.
The Grass installation was made with OSGeo4w.
The Grass v is 7.8.7.
I tried reinstalling Grass but still dont work.
Also i tried installing other grass versions but they don't work either.
--
--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/749#comment:1>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
More information about the osgeo4w-dev
mailing list