Hi all,
I’ve done some more tests:
C:>grass74
Cleaning up temporary files…
Starting GRASS GIS…
ATENÇÃO: Concurrent mapset locking is not supported on Windows
/ / __ / | / / / / __/ / /
/ / __/ // / /| | _ \ \ / / __ / / _
/ // / , / ___ |/ // / / // // / / /
_// |// |/// _///_/
Welcome to GRASS GIS 7.4.2
GRASS GIS homepage: http://grass.osgeo.org
This version running through: Command Shell (C:\WINDOWS\system32\cmd.exe)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
See citation options with: g.version -x
Start the GUI with: g.gui wxpython
When ready to quit enter: exit
Microsoft Windows [Version 10.0.17134.345]
(c) 2018 Microsoft Corporation. Todos os direitos reservados.
C:>g.gui wxpython
Launching GUI in the background, please wait…
C:>python
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
import wx
wx.version()
u’4.0.3 msw (phoenix) wxWidgets 3.0.5’
import sys
sys.executable
‘C:\OSGEO4~1\bin\python.exe’
print ‘\n’.join(sys.path)
C:\OSGEO4~1\apps\grass\grass-7.4.2\etc\python
C:\OSGeo4W64\apps\Python27
C:\OSGEO4~1\bin\python27.zip
C:\OSGEO4~1\apps\Python27\DLLs
C:\OSGEO4~1\apps\Python27\lib
C:\OSGEO4~1\apps\Python27\lib\plat-win
C:\OSGEO4~1\apps\Python27\lib\lib-tk
C:\OSGEO4~1\bin
C:\OSGEO4~1\apps\Python27
C:\OSGEO4~1\apps\Python27\lib\site-packages
C:\OSGEO4~1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg
C:\OSGEO4~1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg
C:\OSGEO4~1\apps\Python27\lib\site-packages\win32
C:\OSGEO4~1\apps\Python27\lib\site-packages\win32\lib
C:\OSGEO4~1\apps\Python27\lib\site-packages\Pythonwin
C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode
quit()
C:>where python
C:\OSGeo4W64\bin\python.exe
Any suggestion about other tests I can run to check if something is missing?
I also tried to install GRASS 6.4 with OSGeo4W, but this time I get this error:
C:>grass64
Traceback (most recent call last):
File “C:/OSGEO4~1/apps/grass/grass-6.4.3/etc/wxpython/wxgui.py”, line 34, in
from lmgr.frame import GMFrame
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\lmgr\frame.py”, line 46, in
from lmgr.layertree import LayerTree, LMIcons
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\lmgr\layertree.py”, line 37, in
from mapdisp.frame import MapFrame
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\mapdisp\frame.py”, line 38, in
from vdigit.toolbars import VDigitToolbar
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\toolbars.py”, line 23, in
from vdigit.main import VDigit
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\main.py”, line 18, in
from vdigit.wxdigit import IVDigit, GV_LINES
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\wxdigit.py”, line 33, in
from vdigit.wxdisplay import DisplayDriver
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\wxdisplay.py”, line 29, in
from grass.lib.vector import *
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\vector.py”, line 23, in
_libs[“grass_vect.6.4.3”] = load_library(“grass_vect.6.4.3”)
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\ctypes_loader.py”, line 55, in load_library
return self.load(path)
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\ctypes_loader.py”, line 221, in load
return WindowsLibrary(path)
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\ctypes_loader.py”, line 207, in init
self.cdll = ctypes.cdll.LoadLibrary(path)
File "C:\OSGEO4~1\apps\Python27\lib\ctypes_init.py", line 444, in LoadLibrary
return self.dlltype(name)
File "C:\OSGEO4~1\apps\Python27\lib\ctypes_init.py", line 366, in init
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found
C:>grass64 -text
Welcome to GRASS 6.4.3 (2013)
GRASS homepage: http://grass.osgeo.org/
This version running thru: Windows Command Shell (cmd.exe)
When ready to quit enter: exit
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
Microsoft Windows [Version 10.0.17134.345]
(c) 2018 Microsoft Corporation. Todos os direitos reservados.
GRASS 6.4.3 (pinhel)> g.gui
Launching ‘wxpython’ GUI in the background, please wait …
Traceback (most recent call last):
File “C:/OSGEO4~1/apps/grass/grass-6.4.3/etc/wxpython/wxgui.py”, line 34, in
from lmgr.frame import GMFrame
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\lmgr\frame.py”, line 46, in
from lmgr.layertree import LayerTree, LMIcons
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\lmgr\layertree.py”, line 37, in
from mapdisp.frame import MapFrame
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\mapdisp\frame.py”, line 38, in
from vdigit.toolbars import VDigitToolbar
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\toolbars.py”, line 23, in
from vdigit.main import VDigit
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\main.py”, line 18, in
from vdigit.wxdigit import IVDigit, GV_LINES
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\wxdigit.py”, line 33, in
from vdigit.wxdisplay import DisplayDriver
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\wxdisplay.py”, line 29, in
from grass.lib.vector import *
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\vector.py”, line 23, in
_libs[“grass_vect.6.4.3”] = load_library(“grass_vect.6.4.3”)
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\ctypes_loader.py”, line 55, in load_library
return self.load(path)
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\ctypes_loader.py”, line 221, in load
return WindowsLibrary(path)
File “C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\ctypes_loader.py”, line 207, in init
self.cdll = ctypes.cdll.LoadLibrary(path)
File "C:\OSGEO4~1\apps\Python27\lib\ctypes_init.py", line 444, in LoadLibrary
return self.dlltype(name)
File "C:\OSGEO4~1\apps\Python27\lib\ctypes_init.py", line 366, in init
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found
GRASS 6.4.3 (pinhel)>
Any help will be very welcome!
Thank you very much!
Best regards,
Pedro
Pedro Venâncio <pedrongvenancio@gmail.com> escreveu no dia terça, 6/11/2018 à(s) 20:11:
Hi Helmut,
Helmut Kudrnovsky <hellik@web.de> escreveu no dia terça, 6/11/2018 à(s) 19:24:
C:>grass74
Cleaning up temporary files…
Starting GRASS GIS…
ERROR: Invalid return code from GUI startup script.
Please advise GRASS developers of this error.
Exiting…
Press any key to continue . . .
what is the invalid return code?
The error falls here, like Markus said:
def gui_startup(grass_gui):
“”“Start GUI for startup (setting gisrc file)”“”
if grass_gui in (‘wxpython’, ‘gtext’):
ret = call([os.getenv(‘GRASS_PYTHON’), wxpath(“gis_set.py”)])
this if could be simplified to three branches (0, 5, rest)
if there is no need to handle unknown code separately
if ret == 0:
pass
elif ret in [1, 2]:
1 probably error coming from gis_set.py
2 probably file not found from python interpreter
formerly we were starting in text mode instead, now we just fail
which is more straightforward for everybody
fatal(_(“Error in GUI startup. See messages above (if any)”
" and if necessary, please"
" report this error to the GRASS developers.\n"
“On systems with package manager, make sure you have the right”
" GUI package, probably named grass-gui, installed.\n"
“To run GRASS GIS in text mode use the -text flag.\n”
“Use ‘–help’ for further options\n”
" {cmd_name} --help\n"
“See also: https://grass.osgeo.org/{cmd_name}/manuals/helptext.html”).format(
cmd_name=cmd_name))
elif ret == 5: # defined in gui/wxpython/gis_set.py
User wants to exit from GRASS
message((“Exit was requested in GUI.\nGRASS GIS will not start. Bye.”))
sys.exit(0)
else:
fatal((“Invalid return code from GUI startup script.\n”
“Please advise GRASS developers of this error.”))
is there another python installation on this windows system?
Yes, I’ve Python 2.7 and Python 3.7, both instaled with OSGeo4W, one for QGIS 2.18 and another for QGIS 3.4. But I’ve the same on another machine.
The strange thing is that both systems are similar, and it works in one,
and not in another.
can you delete all the content in:
C:\Users\YourUserName\AppData\Roaming\GRASS7
and try to restart
I already tested this, but after delete it, it only create an empty GRASS7 folder.
what is happening when you’re in text mode and do
C:>g.gui wxpython
?
C:>g.gui wxpython
Launching GUI in the background, please wait…
C:>
but it does not launch the GUI. Looking at the windows task manager processes, the GRASS GUI process shows up, but closes right after a second or so.
Thank you very much for the help Helmut and Markus!
Best regards,
Pedro