[GRASS-dev] Problem starting GRASS GUI - ntpath splitdrive
Pedro Venâncio
pedrongvenancio at gmail.com
Wed Nov 7 03:02:09 PST 2018
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 <wxpython> 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 <module>
from lmgr.frame import GMFrame
File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\lmgr\frame.py",
line 46, in <module>
from lmgr.layertree import LayerTree, LMIcons
File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\lmgr\layertree.py",
line 37, in <module>
from mapdisp.frame import MapFrame
File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\mapdisp\frame.py",
line 38, in <module>
from vdigit.toolbars import VDigitToolbar
File
"C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\toolbars.py", line
23, in <module>
from vdigit.main import VDigit
File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\main.py",
line 18, in <module>
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 <module>
from vdigit.wxdisplay import DisplayDriver
File
"C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\wxdisplay.py", line
29, in <module>
from grass.lib.vector import *
File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\vector.py",
line 23, in <module>
_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 <module>
from lmgr.frame import GMFrame
File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\lmgr\frame.py",
line 46, in <module>
from lmgr.layertree import LayerTree, LMIcons
File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\lmgr\layertree.py",
line 37, in <module>
from mapdisp.frame import MapFrame
File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\mapdisp\frame.py",
line 38, in <module>
from vdigit.toolbars import VDigitToolbar
File
"C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\toolbars.py", line
23, in <module>
from vdigit.main import VDigit
File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\main.py",
line 18, in <module>
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 <module>
from vdigit.wxdisplay import DisplayDriver
File
"C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\wxpython\vdigit\wxdisplay.py", line
29, in <module>
from grass.lib.vector import *
File "C:\OSGEO4~1\apps\grass\grass-6.4.3\etc\python\grass\lib\vector.py",
line 23, in <module>
_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 <wxpython> 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
>
-------------- próxima parte ----------
Um anexo em HTML foi limpo...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20181107/6483a9b6/attachment-0001.html>
More information about the grass-dev
mailing list