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